[Mlir-commits] [llvm] [mlir] Fix LLVM_ENABLE_ABI_BREAKING_CHECKS macro check: use #if instead of #ifdef (PR #110185)
Scott Todd
llvmlistbot at llvm.org
Fri Sep 27 12:04:50 PDT 2024
ScottTodd wrote:
For reference: https://llvm.org/docs/CMake.html#llvm-related-variables
> **LLVM_ABI_BREAKING_CHECKS**:STRING
Used to decide if LLVM should be built with ABI breaking checks or
not. Allowed values are `WITH_ASSERTS` (default), `FORCE_ON` and
`FORCE_OFF`. `WITH_ASSERTS` turns on ABI breaking checks in an
assertion enabled build. `FORCE_ON` (`FORCE_OFF`) turns them on
(off) irrespective of whether normal (`NDEBUG`-based) assertions are
enabled or not. A version of LLVM built with ABI breaking checks
is not ABI compatible with a version built without it.
https://github.com/llvm/llvm-project/pull/110185
More information about the Mlir-commits
mailing list