diff options
author | 2020-04-03 12:36:15 +0100 | |
---|---|---|
committer | 2020-04-04 18:46:43 +0100 | |
commit | 107950df6d2e7e219c61a1694dfe9ccc9d3d2ddd (patch) | |
tree | fc47d398550919ac922188618f3b545fd2f0cbe5 /cortex-m-rt/ci/script.sh | |
parent | 3222d51668485401f365891745f4148f10400d2f (diff) | |
download | cortex-m-107950df6d2e7e219c61a1694dfe9ccc9d3d2ddd.tar.gz cortex-m-107950df6d2e7e219c61a1694dfe9ccc9d3d2ddd.tar.zst cortex-m-107950df6d2e7e219c61a1694dfe9ccc9d3d2ddd.zip |
Add testing linker=arm-none-eabi-gcc and MSRV to CI
Diffstat (limited to 'cortex-m-rt/ci/script.sh')
-rwxr-xr-x | cortex-m-rt/ci/script.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cortex-m-rt/ci/script.sh b/cortex-m-rt/ci/script.sh index 69262f6..ee4cd2c 100755 --- a/cortex-m-rt/ci/script.sh +++ b/cortex-m-rt/ci/script.sh @@ -57,6 +57,28 @@ main() { cargo rustc --target "$TARGET" --example device --features device --release -- \ -C linker=arm-none-eabi-ld + # linking with GNU GCC + for ex in "${examples[@]}"; do + cargo rustc --target "$TARGET" --example "$ex" -- \ + -C linker=arm-none-eabi-gcc -C link-arg=-nostartfiles + + cargo rustc --target "$TARGET" --example "$ex" --release -- \ + -C linker=arm-none-eabi-gcc -C link-arg=-nostartfiles + done + for ex in "${fail_examples[@]}"; do + ! cargo rustc --target "$TARGET" --example "$ex" -- \ + -C linker=arm-none-eabi-gcc -C link-arg=-nostartfiles + + ! cargo rustc --target "$TARGET" --example "$ex" --release -- \ + -C linker=arm-none-eabi-gcc -C link-arg=-nostartfiles + done + + cargo rustc --target "$TARGET" --example device --features device -- \ + -C linker=arm-none-eabi-gcc -C link-arg=-nostartfiles + + cargo rustc --target "$TARGET" --example device --features device --release -- \ + -C linker=arm-none-eabi-gcc -C link-arg=-nostartfiles + # linking with rustc's LLD for ex in "${examples[@]}"; do cargo rustc --target "$TARGET" --example "$ex" @@ -77,6 +99,10 @@ main() { env RUSTFLAGS="-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" cargo run --target "$TARGET" --example qemu | grep "x = 42" env RUSTFLAGS="-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" cargo run --target "$TARGET" --example qemu --release | grep "x = 42" + # linking with GNU GCC + env RUSTFLAGS="-C linker=arm-none-eabi-gcc -C link-arg=-Tlink.x -Clink-arg=-nostartfiles" cargo run --target "$TARGET" --example qemu | grep "x = 42" + env RUSTFLAGS="-C linker=arm-none-eabi-gcc -C link-arg=-Tlink.x -Clink-arg=-nostartfiles" cargo run --target "$TARGET" --example qemu --release | grep "x = 42" + # linking with rustc's LLD cargo run --target "$TARGET" --example qemu | grep "x = 42" cargo run --target "$TARGET" --example qemu --release | grep "x = 42" |