From 3d9510ccc8d3ab9dc39b7620f3080b53e34fa8ee Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Nov 2001 19:18:30 +0000 Subject: [PATCH] Add support to enable -lfoo to be processed correctly llvm-svn: 1390 --- llvm/tools/link/link.cpp | 4 +++- llvm/tools/llvm-link/llvm-link.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/llvm/tools/link/link.cpp b/llvm/tools/link/link.cpp index 7aa8a040761a..80a39b2d9c15 100644 --- a/llvm/tools/link/link.cpp +++ b/llvm/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/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp index 7aa8a040761a..80a39b2d9c15 100644 --- a/llvm/tools/llvm-link/llvm-link.cpp +++ b/llvm/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;