summaryrefslogtreecommitdiff
path: root/tools/llvm-config
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-12-19 16:02:28 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-12-19 16:02:28 +0000
commitd4cf97ba5168347e0cef385979f2446f951752f7 (patch)
tree2d716b45153d79c53b2128047b5af35b6c9105dc /tools/llvm-config
parentaf224d7584b0d4da089f189c131a8b70f88b11e3 (diff)
llvm-config: Don't show build tree with --obj-root for installed llvm-config. Show $(prefix) instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-config')
-rw-r--r--tools/llvm-config/llvm-config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp
index fa568e67270..2bd11370a9d 100644
--- a/tools/llvm-config/llvm-config.cpp
+++ b/tools/llvm-config/llvm-config.cpp
@@ -320,7 +320,7 @@ int main(int argc, char **argv) {
OS << "ON\n";
#endif
} else if (Arg == "--obj-root") {
- OS << LLVM_OBJ_ROOT << '\n';
+ OS << ActivePrefix << '\n';
} else if (Arg == "--src-root") {
OS << LLVM_SRC_ROOT << '\n';
} else {