]> granicus.if.org Git - clang/commitdiff
[clang] Add abi-breaking-checks support to clang
authorMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 25 Jul 2017 23:00:02 +0000 (23:00 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 25 Jul 2017 23:00:02 +0000 (23:00 +0000)
Summary: You can now use REQUIRES:abi-breaking-checks in clang too

Reviewers: chapuni, probinson, ddunbar, jroelofs

Reviewed By: jroelofs

Subscribers: jroelofs, cfe-commits

Differential Revision: https://reviews.llvm.org/D35426

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309049 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg
test/lit.site.cfg.in

index 28026578299bff70077a66cb126ceab0ac8ea924..f2bcf99e5aea97ba5d0022a0e1936aa09dbf3d05 100644 (file)
@@ -532,3 +532,6 @@ lit.util.usePlatformSdkOnDarwin(config, lit_config)
 macOSSDKVersion = lit.util.findPlatformSdkVersionOnMacOS(config, lit_config)
 if macOSSDKVersion is not None:
     config.available_features.add('macos-sdk-' + macOSSDKVersion)
+
+if config.enable_abi_breaking_checks == "1":
+    config.available_features.add('abi-breaking-checks')
index 63d713987482aacad6af611ec4bf1389775d1817..532ede8424398ecd67c098785d2303b83263c0b9 100644 (file)
@@ -24,6 +24,7 @@ config.clang_examples = @CLANG_BUILD_EXAMPLES@
 config.enable_shared = @ENABLE_SHARED@
 config.enable_backtrace = @ENABLE_BACKTRACES@
 config.host_arch = "@HOST_ARCH@"
+config.enable_abi_breaking_checks = "@LLVM_ENABLE_ABI_BREAKING_CHECKS@"
 
 # Support substitution of the tools and libs dirs with user parameters. This is
 # used when we can't determine the tool dir at configuration time.