mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
eeb4b50dde
While here fix their WITH_DEBUG builds too.
19 lines
623 B
Bash
19 lines
623 B
Bash
--- build-aux/cargo.sh.orig 2021-09-10 08:14:31 UTC
|
|
+++ build-aux/cargo.sh
|
|
@@ -8,13 +8,13 @@ export CARGO_HOME="$MESON_BUILD_ROOT"/cargo-home
|
|
if [ "$4" = "Devel" ]
|
|
then
|
|
echo "DEBUG MODE"
|
|
cargo build --manifest-path \
|
|
"$MESON_SOURCE_ROOT"/Cargo.toml && \
|
|
- cp "$CARGO_TARGET_DIR"/debug/$5 $3
|
|
+ cp "$CARGO_TARGET_DIR"/$CARGO_BUILD_TARGET/debug/$5 $3
|
|
else
|
|
echo "RELEASE MODE"
|
|
cargo build --manifest-path \
|
|
"$MESON_SOURCE_ROOT"/Cargo.toml --release && \
|
|
- cp "$CARGO_TARGET_DIR"/release/$5 $3
|
|
+ cp "$CARGO_TARGET_DIR"/$CARGO_BUILD_TARGET/release/$5 $3
|
|
fi
|
|
|