Johannes Obermayr
2011-Dec-12 18:56 UTC
[LLVMdev] [PATCH] llvm-config: Use "all" components by default.
Otherwise you will receive an empty output for llvm-config --libs llvm-config --libnames llvm-config --libfiles Additionally it fulfills following statement: Typical components: all All LLVM libraries (default). --- tools/llvm-config/llvm-config.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp index bf3357e..22db07e 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/tools/llvm-config/llvm-config.cpp @@ -301,6 +301,8 @@ int main(int argc, char **argv) { if (PrintLibs || PrintLibNames || PrintLibFiles) { // Construct the list of all the required libraries. + if (Components.empty()) + Components.push_back("all"); std::vector<StringRef> RequiredLibs; ComputeLibsForComponents(Components, RequiredLibs); -- 1.7.7
Maybe Matching Threads
- [LLVMdev] Build problems on MinGW solved - possible llvm-config bug
- [LLVMdev] Build problems on MinGW solved - possible llvm-config bug
- [LLVMdev] LLVM: Cannot build LLVM 3.0 (from SVN) in Cygwin (GCC 3.4.4)
- [LLVMdev] llvm-config Question
- [LLVMdev] llvm 2.2 install and ocaml bindings