summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-config/llvm-config.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Windows: canonicalise the default windows tripleSaleem Abdulrasool2014-03-291-1/+2
| | | | | | | Canonicalise the default triple that is used on Windows. This should hopefully fix the MSVC buildbots. llvm-svn: 205070
* Don't emit a blank line when running llvm-config --system-libs.Richard Osborne2014-03-031-18/+20
| | | | | | | | | | | | | | | | | | | | | | | Summary: Previously llvm-config --system-libs would print something like: $ llvm-config --system-libs -lz -ltinfo -lrt -ldl -lm Now we don't emit blank line. Functionality is unchanged otherwise, in particular llvm-config --libs --system-libs still emits the LLVM libraries and the system libraries on different lines. Reviewers: chapuni Reviewed By: chapuni CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2901 llvm-svn: 202719
* llvm-config: Fix typo in help message introduced with r197664.NAKAMURA Takumi2013-12-251-1/+1
| | | | | | Thanks, Vinson Lee! llvm-svn: 197996
* llvm-config: Show OBJROOT rather than OBJROOT/BUILD_MODE in MakefileStyle.NAKAMURA Takumi2013-12-201-0/+1
| | | | llvm-svn: 197818
* llvm-config: Use build_mode instead of LLVM_BUILDMODE. It should be ↵NAKAMURA Takumi2013-12-201-3/+3
| | | | | | equivalent in MakefileStyle. llvm-svn: 197817
* llvm-config: Don't show build tree with --obj-root for installed ↵NAKAMURA Takumi2013-12-191-1/+1
| | | | | | llvm-config. Show $(prefix) instead. llvm-svn: 197684
* llvm-config: Show build root instead of parent path in build tree with ↵NAKAMURA Takumi2013-12-191-0/+1
| | | | | | --obj-root for CMake multiconfig. llvm-svn: 197683
* llvm-config: Introduce --system-libs to print SYSTEM_LIBS, and deprecate ↵NAKAMURA Takumi2013-12-191-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | SYSTEM_LIBS in --ldflags. Although --system-libs is expected to use after --libs, it can be used alone. $ bin/llvm-config --ldflags -L/path/to/llvm/objroot/lib $ bin/llvm-config --libs object -lLLVMObject -lLLVMSupport $ bin/llvm-config --system-libs (Blank line. "all" is assumed but nothing is printed.) -lrt -ldl -ltinfo -lpthread -lz $ bin/llvm-config --ldflags --libs --system-libs object -L/path/to/llvm/objroot/lib -lLLVMObject -lLLVMSupport -lrt -ldl -ltinfo -lpthread -lz It is reimplementation of r197380, and workaround for PR3347 and PR8449. FIXME: Each LLVM component may have its dependent system libs. llvm-svn: 197664
* Revert r197380, "llvm-config: Print SYSTEM_LIBS with --libs, instead of ↵NAKAMURA Takumi2013-12-181-8/+2
| | | | | | | | --ldflags." I will introduce another flag, like --system-libs, later. llvm-svn: 197583
* llvm-config: Let directories aware of CMAKE_CFG_INTDIR.NAKAMURA Takumi2013-12-171-7/+9
| | | | | | | | | | | | | | | | | | With llvm-config.exe --bindir --libdir --build-mode, on Visual Studio 2010, In build tree: (OBJ_ROOT)/bin/MinSizeRel (OBJ_ROOT)/lib/MinSizeRel MinSizeRel In installed tree: (INSTALL_PREFIX)/bin (INSTALL_PREFIX)/lib MinSizeRel This is enhancements since r196283. llvm-svn: 197467
* llvm-config: Print SYSTEM_LIBS with --libs, instead of --ldflags.NAKAMURA Takumi2013-12-161-2/+8
| | | | | | | | | | | | LLVM libs are printed in the first line, and system libs are printed in the next line. $ bin/llvm-config --libs object -lLLVMObject -lLLVMSupport -lrt -ldl -ltinfo -lpthread -lz It is workaround for PR3347 and PR8449. llvm-svn: 197380
* check-llvm: Ask llvm-config about assertion mode, instead of llc.NAKAMURA Takumi2013-12-031-0/+7
| | | | | | Add --assertion-mode to llvm-config. It emits ON or OFF according to NDEBUG. llvm-svn: 196329
* llvm-config: With --build-mode, show ${CMAKE_CFG_INTDIR} on multiconfig builder.NAKAMURA Takumi2013-12-031-1/+6
| | | | llvm-svn: 196283
* Remove unused includes.Rafael Espindola2013-06-261-1/+0
| | | | | | llvm itself is now PathV1 clean. llvm-svn: 184947
* Port GetMainExecutable over to PathV2.Rafael Espindola2013-06-261-3/+3
| | | | | | I will remove the V1 version as soon as I change clang in the next commit. llvm-svn: 184914
* Include PathV1.h in files that use it.Rafael Espindola2013-06-111-0/+1
| | | | | | This is preparation for replacing Path.h with PathV2.h. llvm-svn: 183782
* llvm-config: Use sys::fs::equivalent instead of string comparison.Daniel Dunbar2012-05-151-5/+6
| | | | | | - Hopefully fixes PR11600 (untested). llvm-svn: 156865
* llvm-build: Add support for non-installed libraries (e.g., gtest).Daniel Dunbar2012-05-151-5/+18
| | | | | | | - These libraries are only reported by llvm-config when run from a development tree. llvm-svn: 156838
* An easy case where GCC should really be able to work out that the value is onlyDuncan Sands2012-02-231-0/+1
| | | | | | used if IsInDevelopmentTree is 'true'. But it doesn't, so help it out. llvm-svn: 151244
* llvm-config: Add support for CMake build trees in which the buildPeter Collingbourne2012-01-261-7/+19
| | | | | | mode does not form part of the path. llvm-svn: 149010
* llvm-config: Fix --targets-built, I changed this to use the registry but wasn'tDaniel Dunbar2011-12-161-9/+1
| | | | | | | | properly initializing the target infos. I decided it wasn't worth linking them in for this, so just switched back to using the Makefile variable for now. We can reconsider later if we ever get pluggable targets. llvm-svn: 146711
* llvm-config: Update help text for removal of "backend" pseudo component.Daniel Dunbar2011-12-151-1/+0
| | | | llvm-svn: 146708
* llvm-config: Default to "all" if no components are specified.Daniel Dunbar2011-12-121-0/+4
| | | | | | - Fixes PR11530. llvm-svn: 146388
* llvm-config: Replace with C++ version (was llvm-config-2).Daniel Dunbar2011-12-011-0/+334
| | | | | | - Another reapply of r144300, with hopefully one last fix. llvm-svn: 145623
* Revert commit 145449 (ddunbar) since it is breaking the dragonegg buildbots.Duncan Sands2011-12-011-335/+0
| | | | | | | | Original commit message: llvm-config: Replace with C++ version (was llvm-config-2). - Reapply of r144300, with lots of fixes/migration easement in between. llvm-svn: 145582
* llvm-config: Replace with C++ version (was llvm-config-2).Daniel Dunbar2011-11-291-0/+335
| | | | | | - Reapply of r144300, with lots of fixes/migration easement in between. llvm-svn: 145449
* Revert r144300 "llvm-config: Replace with C++ version (was llvm-config-2).",Daniel Dunbar2011-11-101-324/+0
| | | | | | which didn't appear ready for prime time. llvm-svn: 144309
* llvm-config: Replace with C++ version (was llvm-config-2).Daniel Dunbar2011-11-101-0/+324
llvm-svn: 144300
OpenPOWER on IntegriCloud