summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-08-20 16:41:38 +0000
committerLouis Dionne <ldionne@apple.com>2019-08-20 16:41:38 +0000
commitab50b830d02f4281cf0c57d0a8c0c51ad82bccc9 (patch)
tree8814677a82cfdf023f534656f80578b0425f2164 /libcxx/utils
parent53ab6bef98e7e43a0b5407a24babb837f1317cfa (diff)
downloadbcm5719-llvm-ab50b830d02f4281cf0c57d0a8c0c51ad82bccc9.tar.gz
bcm5719-llvm-ab50b830d02f4281cf0c57d0a8c0c51ad82bccc9.zip
[libc++] Populate a lit feature including the compiler patch level
If the compiler is (for example) AppleClang 10.0.1, we would previously populate the following lit features: apple-clang apple-clang-10 apple-clang-10.0 This patch additionally populates a feature called 'apple-clang-10.0.1', which allows more precise enabling/disabling of tests. llvm-svn: 369406
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index e074df3c922..641bd4ad302 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -233,11 +233,13 @@ class Configuration(object):
cxx_type = self.cxx.type
if cxx_type is not None:
assert self.cxx.version is not None
- maj_v, min_v, _ = self.cxx.version
+ maj_v, min_v, patch_v = self.cxx.version
self.config.available_features.add(cxx_type)
self.config.available_features.add('%s-%s' % (cxx_type, maj_v))
self.config.available_features.add('%s-%s.%s' % (
cxx_type, maj_v, min_v))
+ self.config.available_features.add('%s-%s.%s.%s' % (
+ cxx_type, maj_v, min_v, patch_v))
self.cxx.compile_env = dict(os.environ)
# 'CCACHE_CPP2' prevents ccache from stripping comments while
# preprocessing. This is required to prevent stripping of '-verify'
OpenPOWER on IntegriCloud