[gnome-builder] rust-template: Don't place cargo-home inside target, and disable verbose build log
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] rust-template: Don't place cargo-home inside target, and disable verbose build log
- Date: Thu, 18 Mar 2021 22:27:44 +0000 (UTC)
commit 5dee5fa84414d1114b685e57b472f14cc5cb5671
Author: Felix Häcker <haeckerfelix gnome org>
Date: Wed Mar 17 18:49:31 2021 +0000
rust-template: Don't place cargo-home inside target, and disable verbose build log
src/plugins/meson-templates/resources/build-aux/cargo.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/build-aux/cargo.sh
b/src/plugins/meson-templates/resources/build-aux/cargo.sh
index b37435f46..3c373960d 100755
--- a/src/plugins/meson-templates/resources/build-aux/cargo.sh
+++ b/src/plugins/meson-templates/resources/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
export OUTPUT="$3"
export BUILDTYPE="$4"
export APP_BIN="$5"
@@ -18,7 +18,7 @@ then
else
echo "DEBUG MODE"
cargo build --manifest-path \
- "$MESON_SOURCE_ROOT"/Cargo.toml --verbose && \
+ "$MESON_SOURCE_ROOT"/Cargo.toml && \
cp "$CARGO_TARGET_DIR"/debug/"$APP_BIN" "$OUTPUT"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]