This reverts commit
0f19c603423e28ab663c1fdff2048c555abe5f6d.
This didn't actually do anything. llvm_unreachable() under `#ifndef NDEBUG` is always supposed to report an error regardless of LLVM_UNREACHABLE_OPTIMIZE. I can't reproduce the issue I was originally seeing with this reverted, not sure what was happening back then, manually verified by messing around with various binaries/configurations.
"LLVM_HAVE_TFLITE=",
"LLVM_HOST_TRIPLE=$llvm_current_triple",
"LLVM_NATIVE_ARCH=$native_target",
+ "LLVM_UNREACHABLE_OPTIMIZE=1",
"LLVM_USE_INTEL_JITEVENTS=",
"LLVM_USE_OPROFILE=",
"LLVM_USE_PERF=",
"PACKAGE_VERSION=${llvm_version}git",
]
- if (llvm_enable_assertions) {
- values += [ "LLVM_UNREACHABLE_OPTIMIZE=" ]
- } else {
- values += [ "LLVM_UNREACHABLE_OPTIMIZE=1" ]
- }
-
if (llvm_build_native) {
values += [
"LLVM_NATIVE_ASMPARSER=1",