1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

build: attempt to repair the build

The change in 9b84dabc5f36f7e027c62b5c00ea97e21cfcacdd uses a newer
syntax which not all the builders support.  Use an explicit `OR` over
the languages instead to repair the builders.
This commit is contained in:
Saleem Abdulrasool 2020-02-02 16:18:00 -08:00
parent d10a4c57b7
commit e525cc1017

View File

@ -59,7 +59,7 @@ if( LLVM_ENABLE_ASSERTIONS )
if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" ) if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
# NOTE: use `add_compile_options` rather than `add_definitions` since # NOTE: use `add_compile_options` rather than `add_definitions` since
# `add_definitions` does not support generator expressions. # `add_definitions` does not support generator expressions.
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:-UNDEBUG>) add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-UNDEBUG>)
# Also remove /D NDEBUG to avoid MSVC warnings about conflicting defines. # Also remove /D NDEBUG to avoid MSVC warnings about conflicting defines.
foreach (flags_var_to_scrub foreach (flags_var_to_scrub