[bazel] Set the default of LLVM_UNREACHABLE_OPTIMIZE to 1
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 24 Mar 2022 09:55:02 +0000 (10:55 +0100)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 24 Mar 2022 09:56:43 +0000 (10:56 +0100)
This matches the CMake default. LLVM_UNREACHABLE_OPTIMIZE=0 doesn't
build with gcc

utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h

index e83d6e9..59d8aa6 100644 (file)
 
 /* Define if llvm_unreachable should be optimized with undefined behavior
  * in non assert builds */
-/* #undef LLVM_UNREACHABLE_OPTIMIZE */
+#define LLVM_UNREACHABLE_OPTIMIZE 1
 
 #endif