Skip to content

Commit

Permalink
Backport xtensa cas polyfil and bump to 0.7.17
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Dec 4, 2023
1 parent 0a35fbf commit bb436a0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

## [v0.7.17] - 2023-12-04

### Added

- Backported cas polyfil for the `xtensa-esp32s2-none-elf` target.

## [v0.7.16] - 2022-08-09

### Added
Expand Down
13 changes: 8 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords = ["static", "no-heap"]
license = "MIT OR Apache-2.0"
name = "heapless"
repository = "https://github.com/japaric/heapless"
version = "0.7.16"
version = "0.7.17"

[features]
default = ["cas"]
Expand All @@ -28,16 +28,19 @@ mpmc_large = []
defmt-impl = ["defmt"]

[target.thumbv6m-none-eabi.dependencies]
atomic-polyfill = { version = "0.1.2", optional = true }
atomic-polyfill = { version = "1", optional = true }

[target.riscv32i-unknown-none-elf.dependencies]
atomic-polyfill = { version = "0.1.4" }
atomic-polyfill = { version = "1" }

[target.riscv32imc-unknown-none-elf.dependencies]
atomic-polyfill = { version = "0.1.4" }
atomic-polyfill = { version = "1" }

[target.xtensa-esp32s2-none-elf.dependencies]
atomic-polyfill = { version = "1" }

[target.'cfg(target_arch = "avr")'.dependencies]
atomic-polyfill = { version = "0.1.8", optional = true }
atomic-polyfill = { version = "1", optional = true }

[dependencies]
hash32 = "0.2.1"
Expand Down
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// | "riscv32imc-unknown-none-elf" // supported by atomic-polyfill
| "thumbv4t-none-eabi"
// | "thumbv6m-none-eabi" // supported by atomic-polyfill
// | "xtensa-esp32s2-none-elf" // supported by atomic-polyfill
=> {}

_ => {
Expand All @@ -55,6 +56,7 @@ fn main() -> Result<(), Box<dyn Error>> {
"msp430-none-elf"
// | "riscv32i-unknown-none-elf" // supported by atomic-polyfill
// | "riscv32imc-unknown-none-elf" // supported by atomic-polyfill
// | "xtensa-esp32s2-none-elf" // supported by atomic-polyfill
=> {}

_ => {
Expand All @@ -75,7 +77,7 @@ fn main() -> Result<(), Box<dyn Error>> {
println!("cargo:rustc-cfg=cas_atomic_polyfill");
}

"thumbv6m-none-eabi" => {
"thumbv6m-none-eabi" | "xtensa-esp32s2-none-elf" => {
println!("cargo:rustc-cfg=cas_atomic_polyfill");
}
_ => {}
Expand Down

0 comments on commit bb436a0

Please sign in to comment.