Skip to content

Commit 40e4ba2

Browse files
authored
[cxx-interop] Do not warn about missing libstdc++ on Android
Android uses libc++. This fixes a few tests on Android.
1 parent 7a6f9ce commit 40e4ba2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,9 @@ getClangInvocationFileMapping(ASTContext &ctx) {
881881
// We currently only need this when building for Linux.
882882
if (!triple.isOSLinux())
883883
return {};
884+
// Android uses libc++.
885+
if (triple.isAndroid())
886+
return {};
884887

885888
auto clangDiags = clang::CompilerInstance::createDiagnostics(
886889
new clang::DiagnosticOptions());

0 commit comments

Comments
 (0)