Skip to content

Commit 003a3b0

Browse files
authored
[libc++] Fixes lit portability issues. (#72435)
@StephanTLavavej mentioned the libc++ tests no longer works for MSVC STL. The regex changes have been provided by Stephan.
1 parent 233971b commit 003a3b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/utils/libcxx/test/params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def getStdFlag(cfg, std):
114114
),
115115
actions=lambda std: [
116116
AddFeature(std),
117-
AddSubstitution("%{cxx_std}", re.sub("\+", "x", std)),
117+
AddSubstitution("%{cxx_std}", re.sub(r"\+", "x", std)),
118118
AddCompileFlag(lambda cfg: getStdFlag(cfg, std)),
119119
],
120120
),
@@ -187,7 +187,7 @@ def getStdFlag(cfg, std):
187187
AddFeature("stdlib={}".format(stdlib)),
188188
# Also add an umbrella feature 'stdlib=libc++' for all flavors of libc++, to simplify
189189
# the test suite.
190-
AddFeature("stdlib=libc++") if re.match(".+-libc\+\+", stdlib) else None,
190+
AddFeature("stdlib=libc++") if re.match(r".+-libc\+\+", stdlib) else None,
191191
],
192192
),
193193
),

0 commit comments

Comments
 (0)