termux-packages/packages/emscripten/llvm-project-clang-lib-Driver-ToolChain.cpp.patch.diff
Jia Yuan Lo 49f4c2dbe1 emscripten: update some details
* upstream now use LLVM 15, update patches
* drop building libunwind until further notice
* patch binaryen CMakeLists.txt
* should be able to run tests now that python3 multiprocessing works
2022-03-08 04:52:59 +09:00

22 lines
628 B
Diff

diff -uNr llvm-project/clang/lib/Driver/ToolChain.cpp llvm-project.mod/clang/lib/Driver/ToolChain.cpp
--- llvm-project/clang/lib/Driver/ToolChain.cpp 2022-02-24 01:38:33.000000000 +0800
+++ llvm-project.mod/clang/lib/Driver/ToolChain.cpp 2022-02-26 20:33:29.973336795 +0800
@@ -414,7 +414,7 @@
case llvm::Triple::AIX:
return "aix";
default:
- return getOS();
+ return Triple.isAndroid() ? "android":getOS();
}
}
@@ -965,7 +965,7 @@
switch (Type) {
case ToolChain::CST_Libcxx:
- CmdArgs.push_back("-lc++");
+ CmdArgs.push_back("-lc++_shared");
break;
case ToolChain::CST_Libstdcxx: