From 7a2b43796a4c38cf98fe05e8e4ec985318b2721b Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 15 Oct 2017 15:41:01 +0300 Subject: Imported llvm-toolchain-5.0 (1:5.0-4) --- debian/patches/fix-llvm-config-obj-src-root.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 debian/patches/fix-llvm-config-obj-src-root.patch (limited to 'debian/patches/fix-llvm-config-obj-src-root.patch') 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..bc1e679 --- /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_5.0~svn298810/tools/llvm-config/llvm-config.cpp +=================================================================== +--- llvm-toolchain-snapshot_5.0~svn298810.orig/tools/llvm-config/llvm-config.cpp ++++ llvm-toolchain-snapshot_5.0~svn298810/tools/llvm-config/llvm-config.cpp +@@ -555,9 +555,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; -- cgit v1.2.3