[PATCH] D22499: [llvm-config] Report --bindir based on LLVM_TOOLS_INSTALL_DIR

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 08:33:52 PDT 2017


tstellar added inline comments.


================
Comment at: tools/llvm-config/llvm-config.cpp:331
     ActiveIncludeDir = ActivePrefix + "/include";
-    ActiveBinDir = ActivePrefix + "/bin";
+    ActiveBinDir = ActivePrefix + "/" + LLVM_TOOLS_INSTALL_DIR;
     ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX;
----------------
LLVM_TOOLS_INSTALL_DIR  can be a path relative to CMAKE_INSTALL_PREFIX or it can be an absolute path.  So this won't work if it's an absolute path.


Repository:
  rL LLVM

https://reviews.llvm.org/D22499





More information about the llvm-commits mailing list