fix-llvm-config-obj-src-root
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 24 Mar 2020 16:37:07 +0000 (16:37 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 24 Mar 2020 16:37:07 +0000 (16:37 +0000)
Gbp-Pq: Name fix-llvm-config-obj-src-root.patch

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

index 6c31df3e173b0577f3c4d8e51aa3f87c3d47a824..0eb6b91d41f15751fcfbe5e90ba34176c19ab8e0 100644 (file)
@@ -560,9 +560,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;