summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-12-01 20:00:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-12-01 20:00:19 +0000
commit5a78bb5686ce212fbf3c70d99da1444b6a6861ce (patch)
tree74ef54bf9e792fe3209df572dba231543db520f0 /llvm
parentf60485c4cf4d5c1d8a10ca2bac78e2f0b31b921a (diff)
downloadbcm5719-llvm-5a78bb5686ce212fbf3c70d99da1444b6a6861ce.tar.gz
bcm5719-llvm-5a78bb5686ce212fbf3c70d99da1444b6a6861ce.zip
llvm-config-2: Fix --cflags and --includedir which pointed at the wrong
directory when running from a build directory. llvm-svn: 145622
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvm-config-2/llvm-config.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-config-2/llvm-config.cpp b/llvm/tools/llvm-config-2/llvm-config.cpp
index fddd481230b..bf3357e9f2f 100644
--- a/llvm/tools/llvm-config-2/llvm-config.cpp
+++ b/llvm/tools/llvm-config-2/llvm-config.cpp
@@ -210,16 +210,15 @@ int main(int argc, char **argv) {
std::string ActivePrefix, ActiveBinDir, ActiveIncludeDir, ActiveLibDir;
std::string ActiveIncludeOption;
if (IsInDevelopmentTree) {
+ ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include";
ActivePrefix = CurrentExecPrefix;
// CMake organizes the products differently than a normal prefix style
// layout.
if (DevelopmentTreeLayoutIsCMakeStyle) {
- ActiveIncludeDir = ActiveObjRoot + "/include";
ActiveBinDir = ActiveObjRoot + "/bin/" + LLVM_BUILDMODE;
ActiveLibDir = ActiveObjRoot + "/lib/" + LLVM_BUILDMODE;
} else {
- ActiveIncludeDir = ActiveObjRoot + "/include";
ActiveBinDir = ActiveObjRoot + "/" + LLVM_BUILDMODE + "/bin";
ActiveLibDir = ActiveObjRoot + "/" + LLVM_BUILDMODE + "/lib";
}
OpenPOWER on IntegriCloud