[llvm-commits] [llvm] r146388 - /llvm/trunk/tools/llvm-config/llvm-config.cpp
Daniel Dunbar
daniel at zuster.org
Mon Dec 12 10:22:04 PST 2011
Author: ddunbar
Date: Mon Dec 12 12:22:04 2011
New Revision: 146388
URL: http://llvm.org/viewvc/llvm-project?rev=146388&view=rev
Log:
llvm-config: Default to "all" if no components are specified.
- Fixes PR11530.
Modified:
llvm/trunk/tools/llvm-config/llvm-config.cpp
Modified: llvm/trunk/tools/llvm-config/llvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/llvm-config.cpp?rev=146388&r1=146387&r2=146388&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp Mon Dec 12 12:22:04 2011
@@ -300,6 +300,10 @@
usage();
if (PrintLibs || PrintLibNames || PrintLibFiles) {
+ // If no components were specified, default to "all".
+ if (Components.empty())
+ Components.push_back("all");
+
// Construct the list of all the required libraries.
std::vector<StringRef> RequiredLibs;
ComputeLibsForComponents(Components, RequiredLibs);
More information about the llvm-commits
mailing list