diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-06-08 06:13:12 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-06-08 06:13:12 +0000 |
| commit | 7d80640f2530140840c4ba0e7d45f424f1c42bd8 (patch) | |
| tree | f98c6897433089de1cf7398296beae4db5cbec1b | |
| parent | eeae5ddbe20b084417ef7052d00bd898a241bf84 (diff) | |
| download | bcm5719-llvm-7d80640f2530140840c4ba0e7d45f424f1c42bd8.tar.gz bcm5719-llvm-7d80640f2530140840c4ba0e7d45f424f1c42bd8.zip | |
COFF: Use the empty string as the current directory instead of ".".
This is NFC but makes log message a bit nicer because it doesn't
append .\ (or ./ on Unix) to files in the current directory.
llvm-svn: 239290
| -rw-r--r-- | lld/COFF/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index a2beb76b8e7..1cc635be18f 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -162,7 +162,8 @@ Optional<StringRef> LinkerDriver::findLib(StringRef Filename) { // Parses LIB environment which contains a list of search paths. std::vector<StringRef> LinkerDriver::getSearchPaths() { std::vector<StringRef> Ret; - Ret.push_back("."); + // Add current directory as first item of the search paths. + Ret.push_back(""); Optional<std::string> EnvOpt = Process::GetEnv("LIB"); if (!EnvOpt.hasValue()) return Ret; |

