meson: Add debug build.

This commit is contained in:
Jordan Petridis
2018-05-31 14:45:54 +03:00
parent 64099e37e5
commit b3d45384e1
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -3,4 +3,11 @@
export CARGO_HOME=$1/target/cargo-home
export RUSTFLAGS="--cfg rayon_unstable"
cargo build --release -p hammond-gtk && cp $1/target/release/hammond-gtk $2
if [[ $DEBUG = true ]]
then
echo "DEBUG MODE"
cargo build -p hammond-gtk && cp $1/target/debug/hammond-gtk $2
else
echo "RELEASE MODE"
cargo build --release -p hammond-gtk && cp $1/target/release/hammond-gtk $2
fi