diff --git a/tools/link/link.cpp b/tools/link/link.cpp index 4f7530ced3e..bdd04685ce3 100644 --- a/tools/link/link.cpp +++ b/tools/link/link.cpp @@ -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 Composite(LoadFile(InputFilenames[BaseArg])); if (Composite.get() == 0) return 1; diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index 4f7530ced3e..bdd04685ce3 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -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 Composite(LoadFile(InputFilenames[BaseArg])); if (Composite.get() == 0) return 1;