From ddbf4cf8e48cdcb093af119918215764960c3212 Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" Date: Thu, 3 Nov 2022 10:40:16 +0100 Subject: [PATCH] chore(compiler): disable dollar-in-identifier-extension --- compiler/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt index 1375c4265..d0895e482 100644 --- a/compiler/CMakeLists.txt +++ b/compiler/CMakeLists.txt @@ -7,9 +7,12 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_CXX_STANDARD 14) 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) - add_definitions("-Wno-narrowing -Wno-dollar-in-identifier-extension -Wno-string-conversion") + add_definitions("-Wno-narrowing -Wno-string-conversion") else() add_definitions("-Wall -Werror") endif()