llvm.org GIT mirror llvm / 1e11739
Introduces cmake option `LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING` Summary: We recently introduced a feature that enforce at link-time that the LLVM headers used by a clients are matching the ABI setting of the LLVM library linked to. However for clients that are using only headers from ADT and promise they won't call into LLVM, this is forcing to link libSupport. This new flag is intended to provide a way to configure LLVM with this promise for such client. Reviewers: bob.wilson, compnerd Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D27432 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288754 91177308-0d34-0410-b5e6-96231b3b80d8 Mehdi Amini 3 years ago
2 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
413413 set(LLVM_ABI_BREAKING_CHECKS "WITH_ASSERTS" CACHE STRING
414414 "Enable abi-breaking checks. Can be WITH_ASSERTS, FORCE_ON or FORCE_OFF.")
415415
416 option(LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
417 "Disable abi-breaking checks mismatch detection at link-tim." OFF)
418
416419 option(LLVM_FORCE_USE_OLD_HOST_TOOLCHAIN
417420 "Set to ON to force using an old, unsupported host toolchain." OFF)
418421
1313
1414 /* Define to enable checks that alter the LLVM C++ ABI */
1515 #cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
16
17 /* Define to disable the link-time checking of mismatch for
18 LLVM_ENABLE_ABI_BREAKING_CHECKS */
19 #cmakedefine01 LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
20 #if !LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
1621
1722 // ABI_BREAKING_CHECKS protection: provides link-time failure when clients build
1823 // mismatch with LLVM
3742 }
3843 #endif // _MSC_VER
3944
45 #endif // LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
46
4047 #endif