diff options
Diffstat (limited to 'llvm')
| -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);  | 

