[PATCH] D13198: Fix `llvm-config` to adapt to the install environment.

Brad King via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 05:59:41 PST 2015


brad.king added a comment.

After a minor fix this now compiles and gives the proper `--libfiles` paths on OS X with both CMake and autoconf builds.


================
Comment at: tools/llvm-config/llvm-config.cpp:367
@@ +366,3 @@
+  bool DyLibExists = false;
+  std::string DyLibName = SharedPrefix + "LLVM";
+  if (ConfigTool == CMake) {
----------------
Minor fix needed to compile:


```
-  std::string DyLibName = SharedPrefix + "LLVM";
+  std::string DyLibName = SharedPrefix.str() + "LLVM";
```



http://reviews.llvm.org/D13198





More information about the llvm-commits mailing list