fix-llvm-config-obj-src-root
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 6 Jan 2021 19:16:26 +0000 (19:16 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 6 Jan 2021 19:16:26 +0000 (19:16 +0000)
Gbp-Pq: Name fix-llvm-config-obj-src-root.patch

llvm/tools/llvm-config/llvm-config.cpp

index 7e74b7c90816b6e40bbac50754bd1579cedbf047..84040fb817a0082cf660eeef4be005a889b60b82 100644 (file)
@@ -584,9 +584,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;