diff options
author | Douglas Katzman <dougk@google.com> | 2015-10-21 19:33:54 +0000 |
---|---|---|
committer | Douglas Katzman <dougk@google.com> | 2015-10-21 19:33:54 +0000 |
commit | 526b5f9cd4794794d278db42c56f074404aa9a5e (patch) | |
tree | 64b7a4b04076108a39e0c9f9cd10e3ebda772c4a /clang/lib/Driver/Tools.cpp | |
parent | 97f84e870fe69a329dd6f5e92670647bc0cb7f03 (diff) | |
download | llvm-526b5f9cd4794794d278db42c56f074404aa9a5e.zip llvm-526b5f9cd4794794d278db42c56f074404aa9a5e.tar.gz llvm-526b5f9cd4794794d278db42c56f074404aa9a5e.tar.bz2 |
[Myriad]: Always add -L paths even if -nostdlib is set.
llvm-svn: 250932
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 949451a..3596a6a 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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); |