rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | From 10085819b632fecf6b4cd16dbb26f65ac56fa86e Mon Sep 17 00:00:00 2001 |
| 2 | From: Jizhou Deng <jizhou.deng@mediatek.com> |
| 3 | Date: Fri, 26 Jul 2019 11:33:54 +0800 |
| 4 | Subject: [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 | |
| 10 | diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
| 11 | index 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 | -- |
| 26 | 2.18.0 |
| 27 | |