From a43bf8078861ae816b45d94f7012a7ea01a2e5eb Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 2 Feb 2020 16:18:00 -0800 Subject: [PATCH] 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. --- llvm/cmake/modules/HandleLLVMOptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index 0942bb98a26f..cd48f93f80ca 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -59,7 +59,7 @@ if( LLVM_ENABLE_ASSERTIONS ) if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" ) # NOTE: use `add_compile_options` rather than `add_definitions` since # `add_definitions` does not support generator expressions. - add_compile_options($<$:-UNDEBUG>) + add_compile_options($<$,$>:-UNDEBUG>) # Also remove /D NDEBUG to avoid MSVC warnings about conflicting defines. foreach (flags_var_to_scrub