Add the rest of the Rust projects to the build tool #53
14
build.sh
14
build.sh
|
@ -34,7 +34,7 @@ if [ -z "${TARGET-}" ]; then
|
|||
fi
|
||||
|
||||
if [ -z "${CMD-}" ]; then
|
||||
CMD="release"
|
||||
CMD="test release"
|
||||
fi
|
||||
|
||||
if [ "${CMD}" == "clean" ]; then
|
||||
|
@ -42,8 +42,10 @@ if [ "${CMD}" == "clean" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "${TARGET}" == "all" ]; then
|
||||
build_rust_targets $CMD ${RUST_ALL_TARGETS[*]}
|
||||
else
|
||||
build_rust_targets $CMD $TARGET
|
||||
fi
|
||||
for cmd in $CMD; do
|
||||
if [ "${TARGET}" == "all" ]; then
|
||||
build_rust_targets $cmd ${RUST_ALL_TARGETS[*]}
|
||||
else
|
||||
build_rust_targets $cmd $TARGET
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -21,7 +21,7 @@ case $CMD in
|
|||
$CARGO run $MODULE $PARAMS
|
||||
;;
|
||||
release)
|
||||
$CARGO run --release $MODULE $PARAMS
|
||||
$CARGO build --release $MODULE $PARAMS
|
||||
;;
|
||||
clean)
|
||||
$CARGO clean $MODULE
|
||||
|
|
Loading…
Reference in New Issue