fix: ignore narrowing errors on Mac

This commit is contained in:
youben11
2022-01-18 13:02:57 +01:00
committed by Ayoub Benaissa
parent 2926ea6a5e
commit b8cfaeb3f4

View File

@@ -7,6 +7,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Wouldn't be able to compile LLVM without this on Mac (using either Clang or AppleClang)
if (APPLE)
add_definitions("-Wno-narrowing")
endif()
# If we are trying to build the compiler with LLVM/MLIR as libraries
if( NOT DEFINED LLVM_EXTERNAL_CONCRETELANG_SOURCE_DIR )