diff options
author | Louis Dionne <ldionne@apple.com> | 2019-08-20 16:41:38 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-08-20 16:41:38 +0000 |
commit | 969fd814917845799a548292b2df6bac66515d8b (patch) | |
tree | 306399392b3e6f06ba0a20d39c84455cf8ad5a98 /utils/libcxx/test/config.py | |
parent | e746afcf010c1b88336246593f722269e017913b (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@369406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/libcxx/test/config.py')
-rw-r--r-- | utils/libcxx/test/config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/libcxx/test/config.py b/utils/libcxx/test/config.py index e074df3c9..641bd4ad3 100644 --- a/utils/libcxx/test/config.py +++ b/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' |