mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
ELF: Report multiple errors from the driver.
This patch let the driver keep going until it parses all command line options. http://reviews.llvm.org/D16645 llvm-svn: 259143
This commit is contained in:
@@ -178,7 +178,7 @@ void LinkerScript::addFile(StringRef S) {
|
||||
else
|
||||
Driver->addFile(Saver.save(Config->Sysroot + "/" + S.substr(1)));
|
||||
} else if (S.startswith("-l")) {
|
||||
Driver->addFile(searchLibrary(S.substr(2)));
|
||||
Driver->addLibrary(S.substr(2));
|
||||
} else if (sys::fs::exists(S)) {
|
||||
Driver->addFile(S);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user