[libcxx-commits] [libcxx] 6e4bb60 - [libc++] Assume newer LLVM versions for not-yet-released macOS versions

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 6 10:54:05 PDT 2024


Author: Louis Dionne
Date: 2024-07-06T13:52:52-04:00
New Revision: 6e4bb60adef6abd34516f9121930eaa84e41e04a

URL: https://github.com/llvm/llvm-project/commit/6e4bb60adef6abd34516f9121930eaa84e41e04a
DIFF: https://github.com/llvm/llvm-project/commit/6e4bb60adef6abd34516f9121930eaa84e41e04a.diff

LOG: [libc++] Assume newer LLVM versions for not-yet-released macOS versions

This makes the test suite forward-compatible with future versions of macOS.
Previously, the Lit features were built in a way that they would assume
that any newer macOS version doesn't contain any version of LLVM, which
doesn't make sense.

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/features.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py
index ab6c84fe7326b..5e708da4f8fbe 100644
--- a/libcxx/utils/libcxx/test/features.py
+++ b/libcxx/utils/libcxx/test/features.py
@@ -587,7 +587,7 @@ def check_gdb(cfg):
     Feature(
         name="_target-has-llvm-17",
         when=lambda cfg: BooleanExpression.evaluate(
-            "target={{.+}}-apple-macosx{{14.[4-9](.0)?}}",
+            "target={{.+}}-apple-macosx{{14.[4-9](.0)?}} || target={{.+}}-apple-macosx{{1[5-9]([.].+)?}}",
             cfg.available_features,
         ),
     ),


        


More information about the libcxx-commits mailing list