diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..35f849f --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# I'm using a bash script because if i set the target in .cargo/config.toml +# i can't build for x86_64 anymore, which means I can't run the unit tests. +TARGET="thumbv6m-none-eabi" +cargo build --target $TARGET $@ diff --git a/scripts/flash.sh b/scripts/flash.sh index 2f24e45..0d41f22 100755 --- a/scripts/flash.sh +++ b/scripts/flash.sh @@ -3,4 +3,4 @@ # i can't build for x86_64 anymore, which means I can't run the unit tests. TARGET="thumbv6m-none-eabi" cargo build --target $TARGET -cargo run --target $TARGET +cargo run --target $TARGET $@