[llvm] r197683 - llvm-config: Show build root instead of parent path in build tree with --obj-root for CMake multiconfig.

NAKAMURA Takumi geek4civic at gmail.com
Thu Dec 19 08:02:23 PST 2013


Author: chapuni
Date: Thu Dec 19 10:02:23 2013
New Revision: 197683

URL: http://llvm.org/viewvc/llvm-project?rev=197683&view=rev
Log:
llvm-config: Show build root instead of parent path in build tree with --obj-root for CMake multiconfig.

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=197683&r1=197682&r2=197683&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp Thu Dec 19 10:02:23 2013
@@ -248,6 +248,7 @@ int main(int argc, char **argv) {
       ActiveLibDir = ActiveObjRoot + "/lib";
       break;
     case CMakeBuildModeStyle:
+      ActivePrefix = ActiveObjRoot;
       ActiveBinDir = ActiveObjRoot + "/bin/" + build_mode;
       ActiveLibDir = ActiveObjRoot + "/lib/" + build_mode;
       break;





More information about the llvm-commits mailing list