diff options
| author | Richard Barton <richard.barton@arm.com> | 2013-12-17 11:11:25 +0000 |
|---|---|---|
| committer | Richard Barton <richard.barton@arm.com> | 2013-12-17 11:11:25 +0000 |
| commit | ffbfc0782ffb14b050fabd970eaab1d7ca687039 (patch) | |
| tree | 1bb0c4fcf7ca5c23c096220bebf912e3bd5b5b5d /lib/Driver/Tools.cpp | |
| parent | bbb66648064c16977ab6a92586c459711913e4b3 (diff) | |
| download | clang-ffbfc0782ffb14b050fabd970eaab1d7ca687039.tar.gz clang-ffbfc0782ffb14b050fabd970eaab1d7ca687039.tar.bz2 clang-ffbfc0782ffb14b050fabd970eaab1d7ca687039.tar.xz | |
LIBRARY_PATH environment variable should only be supported on a native compiler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
| -rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index bd0d864ed7..00ec3b0968 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -190,7 +190,9 @@ static void AddLinkerInputs(const ToolChain &TC, } // LIBRARY_PATH - included following the user specified library paths. - addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH"); + // and only supported on native toolchains. + if (!TC.isCrossCompiling()) + addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH"); } /// \brief Determine whether Objective-C automated reference counting is |
