1
0
Fork 0

Codefix: use -Wno-multichar with clang-cl

pull/13066/head
glx22 2024-11-07 21:54:59 +01:00
parent 43c574ecfb
commit e03028a0d2
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@ macro(compile_flags)
# This flag disables the broken optimisation to work around the bug # This flag disables the broken optimisation to work around the bug
add_compile_options(/d2ssa-rse-) add_compile_options(/d2ssa-rse-)
endif() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(
-Wno-multichar
)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
add_compile_options( add_compile_options(
-W -W