aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-config/llvm-config.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-12-12 18:22:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-12-12 18:22:04 +0000
commitfbc6a892a754c470a71a07cea59c90141d5e1952 (patch)
tree992096b425f87283f2bc972012fd145af7149f69 /llvm/tools/llvm-config/llvm-config.cpp
parent20db059d067a0fb5b5ee02fce52c7554c5f82eb7 (diff)
downloadllvm-fbc6a892a754c470a71a07cea59c90141d5e1952.zip
llvm-fbc6a892a754c470a71a07cea59c90141d5e1952.tar.gz
llvm-fbc6a892a754c470a71a07cea59c90141d5e1952.tar.bz2
llvm-config: Default to "all" if no components are specified.
- Fixes PR11530. llvm-svn: 146388
Diffstat (limited to 'llvm/tools/llvm-config/llvm-config.cpp')
-rw-r--r--llvm/tools/llvm-config/llvm-config.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp
index bf3357e..e893b04 100644
--- a/llvm/tools/llvm-config/llvm-config.cpp
+++ b/llvm/tools/llvm-config/llvm-config.cpp
@@ -300,6 +300,10 @@ int main(int argc, char **argv) {
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);