blob: c885d9e93f2edde0e1062ec9ce94530737ccd8a1 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001From 10085819b632fecf6b4cd16dbb26f65ac56fa86e Mon Sep 17 00:00:00 2001
2From: Jizhou Deng <jizhou.deng@mediatek.com>
3Date: Fri, 26 Jul 2019 11:33:54 +0800
4Subject: [PATCH] use gcc_s instead unwind
5
6---
7 clang/lib/Driver/ToolChains/CommonArgs.cpp | 4 +---
8 1 file changed, 1 insertion(+), 3 deletions(-)
9
10diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
11index 5f6b24e33eb..cb4854710cb 100644
12--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
13+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
14@@ -1192,9 +1192,7 @@ void tools::AddRunTimeLibs(const ToolChain &TC, const Driver &D,
15 case ToolChain::RLT_CompilerRT:
16 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins"));
17 CmdArgs.push_back("--as-needed");
18- CmdArgs.push_back("-l:libunwind.a");
19- CmdArgs.push_back("-lpthread");
20- CmdArgs.push_back("-ldl");
21+ CmdArgs.push_back("-lgcc_s");
22 CmdArgs.push_back("--no-as-needed");
23
24 break;
25--
262.18.0
27