| From 10085819b632fecf6b4cd16dbb26f65ac56fa86e Mon Sep 17 00:00:00 2001 |
| From: Jizhou Deng <jizhou.deng@mediatek.com> |
| Date: Fri, 26 Jul 2019 11:33:54 +0800 |
| Subject: [PATCH] use gcc_s instead unwind |
| |
| --- |
| clang/lib/Driver/ToolChains/CommonArgs.cpp | 4 +--- |
| 1 file changed, 1 insertion(+), 3 deletions(-) |
| |
| diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
| index 5f6b24e33eb..cb4854710cb 100644 |
| --- a/clang/lib/Driver/ToolChains/CommonArgs.cpp |
| +++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
| @@ -1192,9 +1192,7 @@ void tools::AddRunTimeLibs(const ToolChain &TC, const Driver &D, |
| case ToolChain::RLT_CompilerRT: |
| CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins")); |
| CmdArgs.push_back("--as-needed"); |
| - CmdArgs.push_back("-l:libunwind.a"); |
| - CmdArgs.push_back("-lpthread"); |
| - CmdArgs.push_back("-ldl"); |
| + CmdArgs.push_back("-lgcc_s"); |
| CmdArgs.push_back("--no-as-needed"); |
| |
| break; |
| -- |
| 2.18.0 |
| |