Skip to content

Commit a43bf80

Browse files
committed
build: attempt to repair the build
The change in 9b84dab uses a newer syntax which not all the builders support. Use an explicit `OR` over the languages instead to repair the builders.
1 parent d24d8af commit a43bf80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if( LLVM_ENABLE_ASSERTIONS )
5959
if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
6060
# NOTE: use `add_compile_options` rather than `add_definitions` since
6161
# `add_definitions` does not support generator expressions.
62-
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:-UNDEBUG>)
62+
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-UNDEBUG>)
6363

6464
# Also remove /D NDEBUG to avoid MSVC warnings about conflicting defines.
6565
foreach (flags_var_to_scrub

0 commit comments

Comments
 (0)