projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e5b40
)
llvm-config: Default to "all" if no components are specified.
author
Daniel Dunbar
<daniel@zuster.org>
Mon, 12 Dec 2011 18:22:04 +0000
(18:22 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Mon, 12 Dec 2011 18:22:04 +0000
(18:22 +0000)
- 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
patch
|
blob
|
history
diff --git
a/tools/llvm-config/llvm-config.cpp
b/tools/llvm-config/llvm-config.cpp
index bf3357e9f2f24daa805e8754a96ed4dc82e0e04b..e893b04d2175e31a6793af57269087a721198d1c 100644
(file)
--- 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);