OSDN Git Service

Have llvm-config --cppflags print correct flags when in CMake build directory
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 28 Oct 2011 01:02:16 +0000 (01:02 +0000)
committerStephen Hines <srhines@google.com>
Mon, 14 Nov 2011 17:11:24 +0000 (09:11 -0800)
commit7754930fa1f2f8c2510d67e1906880bcc94d6f06
tree74104641490e2abddd663ee24e5465d2173f2bb2
parentae74e2d02beb3e78a1282d2c004731599a5ed9af
Have llvm-config --cppflags print correct flags when in CMake build directory

Previously, if invoked from a CMake build directory, 'llvm-config
--cppflags' and friends would only print a -I flag for the build
directory's header search path, because it would assume that it was
already installed, not recognising its parent directory as being the
build directory.  Teach llvm-config about CMake build directories
so that it prints a -I for both the source and build directory's
search paths.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143171 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-config/CMakeLists.txt
tools/llvm-config/Makefile
tools/llvm-config/llvm-config.in.in