From: Douglas Katzman Date: Wed, 21 Oct 2015 19:33:54 +0000 (+0000) Subject: [Myriad]: Always add -L paths even if -nostdlib is set. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ca27de5f3fbd622bc895349a0f392543ba39197;p=clang [Myriad]: Always add -L paths even if -nostdlib is set. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250932 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 949451a4d0..3596a6a031 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -9898,13 +9898,11 @@ void tools::Myriad::Linker::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_e, options::OPT_s, options::OPT_t, options::OPT_Z_Flag, options::OPT_r}); - if (UseDefaultLibs) { - // The linker doesn't use these builtin paths unless directed to, - // because it was not compiled for support with sysroots, nor does - // it have a default of little-endian with FPU. - CmdArgs.push_back(Args.MakeArgString("-L" + BuiltinLibDir)); - CmdArgs.push_back(Args.MakeArgString("-L" + StartFilesDir)); - } + // The linker doesn't use these builtin paths unless directed to, + // because it was not compiled for support with sysroots, nor does + // it have a default of little-endian with FPU. + CmdArgs.push_back(Args.MakeArgString("-L" + BuiltinLibDir)); + CmdArgs.push_back(Args.MakeArgString("-L" + StartFilesDir)); AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs);