summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-10 02:02:21 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-10 02:02:21 +0000
commit25291f15e725877dee952fb4512d7581762a37fa (patch)
tree92cc9a26289fd2a22976358bf24d8510ac29d188
parent27c1b1a638d2f6300ebc6f64fd97bd6f4d9c9e2d (diff)
downloadbcm5719-llvm-25291f15e725877dee952fb4512d7581762a37fa.tar.gz
bcm5719-llvm-25291f15e725877dee952fb4512d7581762a37fa.zip
Add lowercase OS name feature
Summary: Some tests already make use of OS feature names, e.g. 'linux' and 'freebsd', but they are not actually currently set by lit. Reviewers: pcc, eugenis Reviewed By: eugenis Subscribers: emaste, krytarowski, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D49115 llvm-svn: 336633
-rw-r--r--compiler-rt/test/lit.common.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/test/lit.common.cfg b/compiler-rt/test/lit.common.cfg
index fef250268dd..4137e1c3179 100644
--- a/compiler-rt/test/lit.common.cfg
+++ b/compiler-rt/test/lit.common.cfg
@@ -91,8 +91,10 @@ config.environment['PATH'] = path
if platform.system() == 'Windows' and '-win' in config.target_triple:
config.environment['LIB'] = os.environ['LIB']
+config.available_features.add(config.host_os.lower())
+
if re.match(r'^x86_64.*-linux', config.target_triple):
- config.available_features.add("x86_64-linux")
+ config.available_features.add("x86_64-linux")
# Use ugly construction to explicitly prohibit "clang", "clang++" etc.
# in RUN lines.
OpenPOWER on IntegriCloud