summaryrefslogtreecommitdiffstats
path: root/test/lit.cfg.py
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-12-23 15:07:26 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-12-23 15:07:26 +0000
commit3ece3f2fc6c8f80be85e34c99a419e791bce076a (patch)
treeed646f486942040d940336672fbc091f274f03a7 /test/lit.cfg.py
parent40c9a5ffc3ed1bdc20243851b7a0d6eeecf28d5a (diff)
[Driver] Disable -faddrsig on Gentoo by default
Gentoo supports combining clang toolchain with GNU binutils, and many users actually do that. As -faddrsig is not supported by GNU strip, this results in a lot of warnings. Disable it by default and let users enable it explicitly if they want it; with the intent of reevaluating when the underlying feature becomes standarized. See also: https://bugs.gentoo.org/667854 Differential Revision: https://reviews.llvm.org/D56047 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg.py')
-rw-r--r--test/lit.cfg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lit.cfg.py b/test/lit.cfg.py
index d105f8d7e1..e61b4bb104 100644
--- a/test/lit.cfg.py
+++ b/test/lit.cfg.py
@@ -190,3 +190,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 os.path.exists('/etc/gentoo-release'):
+ config.available_features.add('gentoo')