[llvm] r197684 - llvm-config: Don't show build tree with --obj-root for installed llvm-config. Show $(prefix) instead.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Dec 19 08:02:28 PST 2013
Author: chapuni
Date: Thu Dec 19 10:02:28 2013
New Revision: 197684
URL: http://llvm.org/viewvc/llvm-project?rev=197684&view=rev
Log:
llvm-config: Don't show build tree with --obj-root for installed llvm-config. Show $(prefix) instead.
Modified:
llvm/trunk/tools/llvm-config/llvm-config.cpp
Modified: llvm/trunk/tools/llvm-config/llvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/llvm-config.cpp?rev=197684&r1=197683&r2=197684&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp Thu Dec 19 10:02:28 2013
@@ -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 {
More information about the llvm-commits
mailing list