Skip to content

Commit aeabf7d

Browse files
authored
Merge pull request #59156 from apple/egorzhdan/cxx-android-warning
[cxx-interop] Do not warn about missing libstdc++ on Android
2 parents 9889586 + 127e29f commit aeabf7d

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)