[gnome-tour: 1/2] cargo: Use the Meson build dir as the Cargo root




commit dbdd2e06802b1eb63e51ab7212e87a306a03c27a
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri May 14 08:10:41 2021 +0200

    cargo: Use the Meson build dir as the Cargo root
    
    This avoids recompiling the dependencies evey time in Builder when Rust
    Analyzer is enabled.

 build-aux/cargo.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/build-aux/cargo.sh b/build-aux/cargo.sh
index ede82cd..934a4a9 100644
--- a/build-aux/cargo.sh
+++ b/build-aux/cargo.sh
@@ -3,7 +3,7 @@
 export MESON_BUILD_ROOT="$1"
 export MESON_SOURCE_ROOT="$2"
 export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target
-export CARGO_HOME="$CARGO_TARGET_DIR"/cargo-home
+export CARGO_HOME="$MESON_BUILD_ROOT"/cargo-home
 FEATURES="$6"
 
 if [ $4 = "Devel" ]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]