Exit build if rust part fails

This commit is contained in:
Carlos Fernandez Sanz
2021-11-21 09:31:05 -08:00
parent 1a8c8a86f3
commit e98a584e98
2 changed files with 3 additions and 1 deletions

2
linux/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
libccx_rust.a
rust

View File

@@ -84,7 +84,7 @@ else
fi
echo "Building rust files..."
(cd ../src/rust && CARGO_TARGET_DIR=../../linux/rust cargo build )
(cd ../src/rust && CARGO_TARGET_DIR=../../linux/rust cargo build) || { echo "Failed. " ; exit 1; }
cp rust/debug/libccx_rust.a ./libccx_rust.a
fi