From e99d8d6e2ccbb413a4affeb44dd71b9b94151746 Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" Date: Fri, 4 Nov 2022 13:52:14 +0100 Subject: [PATCH] chore: activate Wall Werror on Mac --- compiler/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt index 4b3bd7f05..d317ffc86 100644 --- a/compiler/CMakeLists.txt +++ b/compiler/CMakeLists.txt @@ -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)