Skip to content

Commit e8deba8

Browse files
authored
Switch no-std CI build from thumbv6m to thumbv7m (#131)
As shown by `rustc --target=thumbv6m-none-eabi --print=cfg`, the `thumbv6m-none-eabi` target does not have `target_has_atomic = "ptr"`, so `portable-atomics` (which `once_cell` switched to in `0.19`) does not provide `AtomicPtr::compare_exchange`, which is necessary for the build. Switch to `thumbv7m-none-eabi` instead, which is still a `no_std` target: https://doc.rust-lang.org/nightly/rustc/platform-support.html Fixes the CI error: > error[E0599]: no method named compare_exchange found for struct portable_atomic::AtomicPtr in the current scope
1 parent c1219fc commit e8deba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/rust-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
toolchain: stable
6767
override: true
6868
- uses: Swatinem/rust-cache@v1
69-
- run: rustup target add thumbv6m-none-eabi
70-
- run: cargo build --target thumbv6m-none-eabi --no-default-features
69+
- run: rustup target add thumbv7m-none-eabi
70+
- run: cargo build --target thumbv7m-none-eabi --no-default-features
7171

7272
test:
7373
name: Test

0 commit comments

Comments
 (0)