[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

llvm-svn: 309049

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

index 2802657..f2bcf99 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 63d7139..532ede8 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.