0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/libllvm/clang-lib-Driver-ToolChain.cpp.patch
2023-03-29 13:28:06 +08:00

14 lines
437 B
Diff

diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
@@ -1060,7 +1060,10 @@
switch (Type) {
case ToolChain::CST_Libcxx:
- CmdArgs.push_back("-lc++");
+ if (getTriple().isWindowsGNUEnvironment())
+ CmdArgs.push_back("-lc++");
+ else
+ CmdArgs.push_back("-lc++_shared");
if (Args.hasArg(options::OPT_fexperimental_library))
CmdArgs.push_back("-lc++experimental");
break;