chore: better build shellscripts
This commit is contained in:
parent
28611efedb
commit
e8d26dd1a4
2 changed files with 6 additions and 1 deletions
5
scripts/build.sh
Executable file
5
scripts/build.sh
Executable file
|
@ -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 $@
|
|
@ -3,4 +3,4 @@
|
||||||
# i can't build for x86_64 anymore, which means I can't run the unit tests.
|
# i can't build for x86_64 anymore, which means I can't run the unit tests.
|
||||||
TARGET="thumbv6m-none-eabi"
|
TARGET="thumbv6m-none-eabi"
|
||||||
cargo build --target $TARGET
|
cargo build --target $TARGET
|
||||||
cargo run --target $TARGET
|
cargo run --target $TARGET $@
|
||||||
|
|
Loading…
Add table
Reference in a new issue