llvm-config: Default to "all" if no components are specified.

- Fixes PR11530.

llvm-svn: 146388
This commit is contained in:
Daniel Dunbar 2011-12-12 18:22:04 +00:00
parent 9144e6bb3e
commit e6cf061866

View File

@ -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);