Skip to content

Commit 38d248a

Browse files
committed
[bazel] Set the default of LLVM_UNREACHABLE_OPTIMIZE to 1
This matches the CMake default. LLVM_UNREACHABLE_OPTIMIZE=0 doesn't build with gcc
1 parent c53cbce commit 38d248a

File tree

1 file changed

+1
-1
lines changed
  • utils/bazel/llvm-project-overlay/llvm/include/llvm/Config

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@
122122

123123
/* Define if llvm_unreachable should be optimized with undefined behavior
124124
* in non assert builds */
125-
/* #undef LLVM_UNREACHABLE_OPTIMIZE */
125+
#define LLVM_UNREACHABLE_OPTIMIZE 1
126126

127127
#endif

0 commit comments

Comments
 (0)