mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-22 05:21:13 +00:00
Make sure command line options are parsed before we try to add the LibPath
(-L options) to TheLinker. Problem noticed by Wink Saville. llvm-svn: 26571
This commit is contained in:
parent
8fd9503fbd
commit
9720d6fc61
@ -406,14 +406,14 @@ int main(int argc, char **argv, char **envp) {
|
||||
progname = sys::Path(argv[0]).getBasename();
|
||||
Linker TheLinker(progname, OutputFilename, Verbose);
|
||||
|
||||
// Set up the library paths for the Linker
|
||||
TheLinker.addPaths(LibPaths);
|
||||
TheLinker.addSystemPaths();
|
||||
|
||||
// Parse the command line options
|
||||
cl::ParseCommandLineOptions(argc, argv, " llvm linker\n");
|
||||
sys::PrintStackTraceOnErrorSignal();
|
||||
|
||||
// Set up the library paths for the Linker
|
||||
TheLinker.addPaths(LibPaths);
|
||||
TheLinker.addSystemPaths();
|
||||
|
||||
// Remove any consecutive duplicates of the same library...
|
||||
Libraries.erase(std::unique(Libraries.begin(), Libraries.end()),
|
||||
Libraries.end());
|
||||
|
Loading…
x
Reference in New Issue
Block a user