Skip to content

Commit bde5b01

Browse files
committed
[test] Work around some C interop test failures on stable/20250601
For some reason, the `stable/20250601` Clang emits `-Wc++-keyword` warnings in C mode when `-Weverything` is enabled. Suppress this warning.
1 parent 195c7b0 commit bde5b01

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/Interop/lit.local.cfg

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ config.substitutions.insert(0, (r'%check-interop-cxx-header-in-clang\(([^)]+)\)'
6565
r'%check-cxx-header-in-clang -std=c++20 -Wno-padded -Wno-c11-extensions -D_LIBCPP_CSTDLIB ' + clang_compile_opt + r'\1')))
6666

6767
# Test parsing of the generated C header in different C language modes.
68-
config.substitutions.insert(0, (r'%check-interop-c-header-in-clang\(([^)]+)\)',
69-
SubstituteCaptures(r'%check-c-header-in-clang -std=c99 -Wno-padded -Wno-c11-extensions -Wno-pre-c11-compat \1 && '
70-
r'%check-c-header-in-clang -std=c11 -Wno-padded -Wno-pre-c11-compat \1')))
68+
config.substitutions.insert(0, (
69+
r'%check-interop-c-header-in-clang\(([^)]+)\)',
70+
SubstituteCaptures(
71+
r'%check-c-header-in-clang -std=c99 -Wno-padded -Wno-c++-keyword -Wno-unknown-warning-option -Wno-c11-extensions -Wno-pre-c11-compat \1 && '
72+
r'%check-c-header-in-clang -std=c11 -Wno-padded -Wno-c++-keyword -Wno-unknown-warning-option -Wno-pre-c11-compat \1'
73+
)
74+
))

0 commit comments

Comments
 (0)