Skip to content

Commit 6e2e326

Browse files
committed
Add forgotten Lit features
1 parent 355f46c commit 6e2e326

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

libcxx/utils/libcxx/test/features.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,17 +724,24 @@ def check_gdb(cfg):
724724
# Helpers to define correspondances between LLVM versions and vendor system versions.
725725
# Those are used for backdeployment features below, do not use directly in tests.
726726
DEFAULT_FEATURES += [
727+
Feature(
728+
name="_target-has-llvm-19",
729+
when=lambda cfg: BooleanExpression.evaluate(
730+
"_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\d+)?}}",
731+
cfg.available_features,
732+
),
733+
),
727734
Feature(
728735
name="_target-has-llvm-18",
729736
when=lambda cfg: BooleanExpression.evaluate(
730-
"target={{.+}}-apple-macosx{{15(.[0-9]+)?(.[0-9]+)?}}",
737+
"_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\d+)?}}",
731738
cfg.available_features,
732739
),
733740
),
734741
Feature(
735742
name="_target-has-llvm-17",
736743
when=lambda cfg: BooleanExpression.evaluate(
737-
"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.[0-9]+)?}} || target={{.+}}-apple-macosx{{1[5-9]([.].+)?}}",
744+
"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\d+)?}}",
738745
cfg.available_features,
739746
),
740747
),

0 commit comments

Comments
 (0)