mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Adjust LLVM_ENABLE_ABI_BREAKING_CHECKS depending on NDEBUG
When assertions are disabled, the upstream build system disables LLVM_ENABLE_ABI_BREAKING_CHECKS by default. Though the upstream build system allows it to be force-enabled, it looks like that is not a well-tested build-time configuration. Therefore, always disable LLVM_ENABLE_ABI_BREAKING_CHECKS when assertions are disabled, which will also save some more runtime cost when people use WITHOUT_LLVM_ASSERTIONS. PR: 280562 MFC after: 1 month
This commit is contained in:
parent
a5b1eecbed
commit
1c83996bed
1 changed files with 4 additions and 0 deletions
|
|
@ -13,7 +13,11 @@
|
|||
#define LLVM_ABI_BREAKING_CHECKS_H
|
||||
|
||||
/* Define to enable checks that alter the LLVM C++ ABI */
|
||||
#ifdef NDEBUG
|
||||
#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0
|
||||
#else
|
||||
#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
|
||||
#endif
|
||||
|
||||
/* Define to enable reverse iteration of unordered llvm containers */
|
||||
#define LLVM_ENABLE_REVERSE_ITERATION 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue