From 8033f6197c2cd7a71c9a725e49efaa402a17e707 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 12 Dec 2011 18:22:04 +0000 Subject: 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 --- tools/llvm-config/llvm-config.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') 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 RequiredLibs; ComputeLibsForComponents(Components, RequiredLibs); -- cgit v1.2.3