]> granicus.if.org Git - clang/commitdiff
[Myriad]: Always add -L paths even if -nostdlib is set.
authorDouglas Katzman <dougk@google.com>
Wed, 21 Oct 2015 19:33:54 +0000 (19:33 +0000)
committerDouglas Katzman <dougk@google.com>
Wed, 21 Oct 2015 19:33:54 +0000 (19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250932 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 949451a4d0422e92a17ba06575d75fb35c6d8ec2..3596a6a031cae0968000178d5c988ecf31dbf8e2 100644 (file)
@@ -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);