Skip to content

Commit 310f995

Browse files
committed
Add forgotten Lit features
1 parent 4578bc5 commit 310f995

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
@@ -733,17 +733,24 @@ def check_gdb(cfg):
733733
# Helpers to define correspondances between LLVM versions and vendor system versions.
734734
# Those are used for backdeployment features below, do not use directly in tests.
735735
DEFAULT_FEATURES += [
736+
Feature(
737+
name="_target-has-llvm-19",
738+
when=lambda cfg: BooleanExpression.evaluate(
739+
"_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\d+)?}}",
740+
cfg.available_features,
741+
),
742+
),
736743
Feature(
737744
name="_target-has-llvm-18",
738745
when=lambda cfg: BooleanExpression.evaluate(
739-
"target={{.+}}-apple-macosx{{15(.[0-9]+)?(.[0-9]+)?}}",
746+
"_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\d+)?}}",
740747
cfg.available_features,
741748
),
742749
),
743750
Feature(
744751
name="_target-has-llvm-17",
745752
when=lambda cfg: BooleanExpression.evaluate(
746-
"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.[0-9]+)?}} || target={{.+}}-apple-macosx{{1[5-9]([.].+)?}}",
753+
"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\d+)?}}",
747754
cfg.available_features,
748755
),
749756
),

0 commit comments

Comments
 (0)