r250932 - [Myriad]: Always add -L paths even if -nostdlib is set.
Douglas Katzman via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 21 12:33:54 PDT 2015
Author: dougk
Date: Wed Oct 21 14:33:54 2015
New Revision: 250932
URL: http://llvm.org/viewvc/llvm-project?rev=250932&view=rev
Log:
[Myriad]: Always add -L paths even if -nostdlib is set.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=250932&r1=250931&r2=250932&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Oct 21 14:33:54 2015
@@ -9898,13 +9898,11 @@ void tools::Myriad::Linker::ConstructJob
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);
More information about the cfe-commits
mailing list