From: Chris Lattner Date: Mon, 26 Nov 2001 19:18:30 +0000 (+0000) Subject: Add support to enable -lfoo to be processed correctly X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=de3b862a18d8f8a9e2f8caaf4fc2ea0f3f21ea3d;p=oota-llvm.git Add support to enable -lfoo to be processed correctly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1390 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/link/link.cpp b/tools/link/link.cpp index 7aa8a040761..80a39b2d9c1 100644 --- a/tools/link/link.cpp +++ b/tools/link/link.cpp @@ -54,7 +54,9 @@ static inline std::auto_ptr LoadFile(const string &FN) { } int main(int argc, char **argv) { - cl::ParseCommandLineOptions(argc, argv, " llvm linker\n"); + cl::ParseCommandLineOptions(argc, argv, " llvm linker\n", + cl::EnableSingleLetterArgValue | + cl::DisableSingleLetterArgGrouping); assert(InputFilenames.size() > 0 && "OneOrMore is not working"); unsigned BaseArg = 0; diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index 7aa8a040761..80a39b2d9c1 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -54,7 +54,9 @@ static inline std::auto_ptr LoadFile(const string &FN) { } int main(int argc, char **argv) { - cl::ParseCommandLineOptions(argc, argv, " llvm linker\n"); + cl::ParseCommandLineOptions(argc, argv, " llvm linker\n", + cl::EnableSingleLetterArgValue | + cl::DisableSingleLetterArgGrouping); assert(InputFilenames.size() > 0 && "OneOrMore is not working"); unsigned BaseArg = 0;