Skip to content

Commit b58fed9

Browse files
committed
[Test] Embedded: Add lit.local.cfg.
Pick up the version committed on main.
1 parent 81910bf commit b58fed9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/embedded/lit.local.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Make a local copy of the substitutions.
2+
config.substitutions = list(config.substitutions)
3+
4+
if config.target_sdk_name == 'macosx':
5+
def do_fixup(key, value):
6+
if isinstance(value, str):
7+
value = value.replace("-apple-macosx10.13", "-apple-macos14")
8+
elif isinstance(value, SubstituteCaptures):
9+
value.substitution = value.substitution.replace("-apple-macosx10.13", "-apple-macos14")
10+
return (key, value)
11+
12+
config.substitutions = [do_fixup(a, b) for (a, b) in config.substitutions]

0 commit comments

Comments
 (0)