chore: better build shellscripts

This commit is contained in:
cscherr 2025-07-11 09:27:37 +02:00
parent 28611efedb
commit e8d26dd1a4
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7
2 changed files with 6 additions and 1 deletions

5
scripts/build.sh Executable file
View 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 $@

View file

@ -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 $@