From: Mandeep Singh Grang Date: Tue, 25 Jul 2017 23:00:02 +0000 (+0000) Subject: [clang] Add abi-breaking-checks support to clang X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52ec8830b543c1fbe22ece169ecf8bd8a4b42c9d;p=clang [clang] Add abi-breaking-checks support to clang 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 --- diff --git a/test/lit.cfg b/test/lit.cfg index 2802657829..f2bcf99e5a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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') diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 63d7139874..532ede8424 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -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.