summaryrefslogtreecommitdiff
path: root/debian/patches/fix-llvm-config-obj-src-root.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-llvm-config-obj-src-root.patch')
-rw-r--r--debian/patches/fix-llvm-config-obj-src-root.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/fix-llvm-config-obj-src-root.patch b/debian/patches/fix-llvm-config-obj-src-root.patch
new file mode 100644
index 0000000..626598b
--- /dev/null
+++ b/debian/patches/fix-llvm-config-obj-src-root.patch
@@ -0,0 +1,20 @@
+---
+ tools/llvm-config/llvm-config.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: llvm-toolchain-snapshot_8~svn342269/tools/llvm-config/llvm-config.cpp
+===================================================================
+--- llvm-toolchain-snapshot_8~svn342269.orig/tools/llvm-config/llvm-config.cpp
++++ llvm-toolchain-snapshot_8~svn342269/tools/llvm-config/llvm-config.cpp
+@@ -558,9 +558,9 @@ int main(int argc, char **argv) {
+ } else if (Arg == "--shared-mode") {
+ PrintSharedMode = true;
+ } else if (Arg == "--obj-root") {
+- OS << ActivePrefix << '\n';
++ OS << ActivePrefix << "/build/" << '\n';
+ } else if (Arg == "--src-root") {
+- OS << LLVM_SRC_ROOT << '\n';
++ OS << ActivePrefix << "/build/" << '\n';
+ } else if (Arg == "--ignore-libllvm") {
+ LinkDyLib = false;
+ LinkMode = BuiltSharedLibs ? LinkModeShared : LinkModeAuto;