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 | fbc6a892a754c470a71a07cea59c90141d5e1952 (patch) | |
| tree | 992096b425f87283f2bc972012fd145af7149f69 | |
| parent | 20db059d067a0fb5b5ee02fce52c7554c5f82eb7 (diff) | |
| download | bcm5719-llvm-fbc6a892a754c470a71a07cea59c90141d5e1952.tar.gz bcm5719-llvm-fbc6a892a754c470a71a07cea59c90141d5e1952.zip | |
llvm-config: Default to "all" if no components are specified.
- Fixes PR11530.
llvm-svn: 146388
| -rw-r--r-- | llvm/tools/llvm-config/llvm-config.cpp | 4 |
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 bf3357e9f2f..e893b04d217 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); |

