Skip to content

Commit 4780905

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

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
@@ -2756,6 +2756,7 @@ config.substitutions.insert(0, ('%check-c-header-in-clang',
27562756
# Verifies that a C++ file can be compiled without warnings except for some exceptions.
27572757
config.substitutions.insert(0, ('%check-cxx-header-in-clang',
27582758
'%clangxx -fsyntax-only -x c++-header ' + extraCheckWarningFlags +
2759+
' --sysroot %r ' % config.variant_sdk +
27592760
# Use standard header/framework search paths.
27602761
'-F %%clang-importer-sdk-path/frameworks '
27612762
'-I %%clang-include-dir %%cxx-stdlib-include '

0 commit comments

Comments
 (0)