fix-llvm-config-obj-src-root
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 13 Oct 2017 21:42:29 +0000 (22:42 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 13 Oct 2017 21:42:29 +0000 (22:42 +0100)
===================================================================

Gbp-Pq: Name fix-llvm-config-obj-src-root.patch

tools/llvm-config/llvm-config.cpp

index 94d426be3613ebe894f46964163b105f09adbf30..20d0a5bba3e48d9f0f5caebb3ed0b33c19a87d12 100644 (file)
@@ -538,9 +538,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 == "--link-shared") {
         LinkMode = LinkModeShared;
       } else if (Arg == "--link-static") {