1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Accept, but ignore -lfoo options.

llvm-svn: 1585
This commit is contained in:
Chris Lattner 2002-01-25 03:59:39 +00:00
parent 8b6c515583
commit eb93690918
2 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,7 @@ cl::Flag Force ("f", "Overwrite output files", cl::NoFlags, false);
cl::Flag Verbose ("v", "Print information about actions taken");
cl::Flag DumpAsm ("d", "Print assembly as linked", cl::Hidden, false);
cl::StringList LibPaths ("L", "Specify a library search path", cl::ZeroOrMore);
cl::StringList Libraries ("l", "Specify libraries to link to", cl::ZeroOrMore);
// FileExists - Return true if the specified string is an openable file...
@ -90,6 +91,9 @@ int main(int argc, char **argv) {
OutputFilename = InputFilenames[1];
}
if (!Libraries.empty())
cerr << "LLVM Linker Warning: Linking to libraries is unimplemented!\n";
std::auto_ptr<Module> Composite(LoadFile(InputFilenames[BaseArg]));
if (Composite.get() == 0) return 1;

View File

@ -29,6 +29,7 @@ cl::Flag Force ("f", "Overwrite output files", cl::NoFlags, false);
cl::Flag Verbose ("v", "Print information about actions taken");
cl::Flag DumpAsm ("d", "Print assembly as linked", cl::Hidden, false);
cl::StringList LibPaths ("L", "Specify a library search path", cl::ZeroOrMore);
cl::StringList Libraries ("l", "Specify libraries to link to", cl::ZeroOrMore);
// FileExists - Return true if the specified string is an openable file...
@ -90,6 +91,9 @@ int main(int argc, char **argv) {
OutputFilename = InputFilenames[1];
}
if (!Libraries.empty())
cerr << "LLVM Linker Warning: Linking to libraries is unimplemented!\n";
std::auto_ptr<Module> Composite(LoadFile(InputFilenames[BaseArg]));
if (Composite.get() == 0) return 1;