[libcxx-commits] [libcxx] r369406 - [libc++] Populate a lit feature including the compiler patch level

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 20 09:41:39 PDT 2019

Author: ldionne
Date: Tue Aug 20 09:41:38 2019
New Revision: 369406

URL: http://llvm.org/viewvc/llvm-project?rev=369406&view=rev
[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:


This patch additionally populates a feature called 'apple-clang-10.0.1',
which allows more precise enabling/disabling of tests.


Modified: libcxx/trunk/utils/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/libcxx/test/config.py?rev=369406&r1=369405&r2=369406&view=diff
--- libcxx/trunk/utils/libcxx/test/config.py (original)
+++ libcxx/trunk/utils/libcxx/test/config.py Tue Aug 20 09:41:38 2019
@@ -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('%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'

More information about the libcxx-commits mailing list