diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-12-12 18:22:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-12-12 18:22:04 +0000 |
commit | 8033f6197c2cd7a71c9a725e49efaa402a17e707 (patch) | |
tree | daf084dec400e95ec0801f9861564b9736e3075c /tools/llvm-config | |
parent | 62e5b4064b3610317fbfde1ff6a0a5eca6aa09e0 (diff) |
llvm-config: Default to "all" if no components are specified.
- Fixes PR11530.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-config')
-rw-r--r-- | tools/llvm-config/llvm-config.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp index bf3357e9f2..e893b04d21 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/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); |