chore: activate Wall Werror on Mac

This commit is contained in:
Mayeul@Zama
2022-11-04 13:52:14 +01:00
committed by mayeul-zama
parent f26abad001
commit e99d8d6e2c

View File

@@ -10,11 +10,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Needed on linux with clang 15 and on MacOS because cxx emits dollars in the optimizer C++ API
add_definitions("-Wno-dollar-in-identifier-extension")
# Wouldn't be able to compile LLVM without this on Mac (using either Clang or AppleClang)
if(APPLE)
else()
add_definitions("-Wall -Werror")
endif()
add_definitions("-Wall -Werror")
# If we are trying to build the compiler with LLVM/MLIR as libraries
if(NOT DEFINED LLVM_EXTERNAL_CONCRETELANG_SOURCE_DIR)