aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt')
-rw-r--r--cortex-m-rt/.travis.yml16
-rw-r--r--cortex-m-rt/ci/script.sh30
2 files changed, 12 insertions, 34 deletions
diff --git a/cortex-m-rt/.travis.yml b/cortex-m-rt/.travis.yml
index 7381b73..ff66c36 100644
--- a/cortex-m-rt/.travis.yml
+++ b/cortex-m-rt/.travis.yml
@@ -9,34 +9,18 @@ matrix:
rust: stable
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
- - env: TARGET=thumbv6m-none-eabi CC=clang
- rust: stable
- if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
-
- env: TARGET=thumbv7m-none-eabi
rust: stable
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
- - env: TARGET=thumbv7m-none-eabi CC=clang
- rust: stable
- if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
-
- env: TARGET=thumbv7em-none-eabi
rust: stable
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
- - env: TARGET=thumbv7em-none-eabi CC=clang
- rust: stable
- if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
-
- env: TARGET=thumbv7em-none-eabihf
rust: stable
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
- - env: TARGET=thumbv7em-none-eabihf CC=clang
- rust: stable
- if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
-
- env: TARGET=thumbv6m-none-eabi
rust: nightly
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
diff --git a/cortex-m-rt/ci/script.sh b/cortex-m-rt/ci/script.sh
index 2e070bf..1fa3535 100644
--- a/cortex-m-rt/ci/script.sh
+++ b/cortex-m-rt/ci/script.sh
@@ -20,63 +20,57 @@ main() {
# linking with GNU LD
for ex in "${examples[@]}"; do
cargo rustc --target $TARGET --example $ex -- \
- -C link-arg=-nostartfiles \
- -C link-arg=-Wl,-Tlink.x
+ -C linker=arm-none-eabi-ld \
+ -C link-arg=-Tlink.x
cargo rustc --target $TARGET --example $ex --release -- \
- -C link-arg=-nostartfiles \
- -C link-arg=-Wl,-Tlink.x
+ -C linker=arm-none-eabi-ld \
+ -C link-arg=-Tlink.x
done
for ex in "${fail_examples[@]}"; do
! cargo rustc --target $TARGET --example $ex -- \
- -C link-arg=-nostartfiles \
- -C link-arg=-Wl,-Tlink.x
+ -C linker=arm-none-eabi-ld \
+ -C link-arg=-Tlink.x
! cargo rustc --target $TARGET --example $ex --release -- \
- -C link-arg=-nostartfiles \
- -C link-arg=-Wl,-Tlink.x
+ -C linker=arm-none-eabi-ld \
+ -C link-arg=-Tlink.x
done
cargo rustc --target $TARGET --example device --features device -- \
- -C link-arg=-nostartfiles \
- -C link-arg=-Wl,-Tlink.x
+ -C linker=arm-none-eabi-ld \
+ -C link-arg=-Tlink.x
cargo rustc --target $TARGET --example device --features device --release -- \
- -C link-arg=-nostartfiles \
- -C link-arg=-Wl,-Tlink.x
+ -C linker=arm-none-eabi-ld \
+ -C link-arg=-Tlink.x
# linking with rustc's LLD
for ex in "${examples[@]}"; do
cargo rustc --target $TARGET --example $ex -- \
-C linker=rust-lld \
- -Z linker-flavor=ld.lld \
-C link-arg=-Tlink.x
cargo rustc --target $TARGET --example $ex --release -- \
-C linker=rust-lld \
- -Z linker-flavor=ld.lld \
-C link-arg=-Tlink.x
done
for ex in "${fail_examples[@]}"; do
! cargo rustc --target $TARGET --example $ex -- \
-C linker=rust-lld \
- -Z linker-flavor=ld.lld \
-C link-arg=-Tlink.x
! cargo rustc --target $TARGET --example $ex --release -- \
-C linker=rust-lld \
- -Z linker-flavor=ld.lld \
-C link-arg=-Tlink.x
done
cargo rustc --target $TARGET --example device --features device -- \
-C linker=rust-lld \
- -Z linker-flavor=ld.lld \
-C link-arg=-Tlink.x
cargo rustc --target $TARGET --example device --features device --release -- \
-C linker=rust-lld \
- -Z linker-flavor=ld.lld \
-C link-arg=-Tlink.x
fi
}