2021-11-01 21:41:44 +01:00
|
|
|
diff -uNr llvm-project/clang/lib/Driver/ToolChain.cpp llvm-project.mod/clang/lib/Driver/ToolChain.cpp
|
2021-11-27 07:07:35 +01:00
|
|
|
--- llvm-project/clang/lib/Driver/ToolChain.cpp 2021-11-27 10:21:24.849951600 +0800
|
|
|
|
+++ llvm-project.mod/clang/lib/Driver/ToolChain.cpp 2021-11-27 12:35:59.478509300 +0800
|
|
|
|
@@ -403,7 +403,7 @@
|
2021-11-01 21:41:44 +01:00
|
|
|
case llvm::Triple::AIX:
|
|
|
|
return "aix";
|
|
|
|
default:
|
|
|
|
- return getOS();
|
|
|
|
+ return Triple.isAndroid() ? "android":getOS();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-27 07:07:35 +01:00
|
|
|
@@ -941,7 +941,7 @@
|
2021-11-01 21:41:44 +01:00
|
|
|
|
|
|
|
switch (Type) {
|
|
|
|
case ToolChain::CST_Libcxx:
|
|
|
|
- CmdArgs.push_back("-lc++");
|
|
|
|
+ CmdArgs.push_back("-lc++_shared");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ToolChain::CST_Libstdcxx:
|