Skip to content

Commit fee1a21

Browse files
Add NDK via --sysroot in check-cxx-header-in-clang invocations to fix Interop/SwiftToCxx tests
1 parent ce6bbdd commit fee1a21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/lit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,7 @@ config.substitutions.insert(0, ('%check-c-header-in-clang',
27542754
# Verifies that a C++ file can be compiled without warnings except for some exceptions.
27552755
config.substitutions.insert(0, ('%check-cxx-header-in-clang',
27562756
'%clangxx -fsyntax-only -x c++-header ' + extraCheckWarningFlags +
2757+
' --sysroot %r ' % config.variant_sdk +
27572758
# Use standard header/framework search paths.
27582759
'-F %%clang-importer-sdk-path/frameworks '
27592760
'-I %%clang-include-dir %%cxx-stdlib-include '

0 commit comments

Comments
 (0)