python/hypothesis: update to 6.121.0
[oi-userland.git] / components / developer / clang-13 / patches / 05-no-default-libgcc_s-linking.patch
blob0c9ecf1c2c06f961147a77211fdb817ae05cb050
1 diff -wpruN '--exclude=*.orig' a~/lib/Driver/ToolChains/Solaris.cpp a/lib/Driver/ToolChains/Solaris.cpp
2 --- a~/tools/clang/lib/Driver/ToolChains/Solaris.cpp 1970-01-01 00:00:00
3 +++ a/tools/clang/lib/Driver/ToolChains/Solaris.cpp 1970-01-01 00:00:00
4 @@ -51,6 +51,7 @@
5 const ArgList &Args,
6 const char *LinkingOutput) const {
7 ArgStringList CmdArgs;
8 + const Driver &D = getToolChain().getDriver();
10 // Demangle C++ names in errors
11 CmdArgs.push_back("-C");
12 @@ -125,7 +126,8 @@
13 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
14 if (getToolChain().ShouldLinkCXXStdlib(Args))
15 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs);
16 - CmdArgs.push_back("-lgcc_s");
17 + if (D.CCCIsCXX())
18 + CmdArgs.push_back("-lgcc_s");
19 CmdArgs.push_back("-lc");
20 if (!Args.hasArg(options::OPT_shared)) {
21 CmdArgs.push_back("-lgcc");