From bb436a004dd689b43d8643a6aae3c89d22db3bb5 Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Mon, 4 Dec 2023 13:37:21 +0000 Subject: [PATCH] Backport xtensa cas polyfil and bump to 0.7.17 --- CHANGELOG.md | 6 ++++++ Cargo.toml | 13 ++++++++----- build.rs | 4 +++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d7a2495dc..e3ce5fd200 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 0382792b59..5758769bab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] @@ -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" diff --git a/build.rs b/build.rs index c212713735..0bd68754bd 100644 --- a/build.rs +++ b/build.rs @@ -40,6 +40,7 @@ fn main() -> Result<(), Box> { // | "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 => {} _ => { @@ -55,6 +56,7 @@ fn main() -> Result<(), Box> { "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 => {} _ => { @@ -75,7 +77,7 @@ fn main() -> Result<(), Box> { println!("cargo:rustc-cfg=cas_atomic_polyfill"); } - "thumbv6m-none-eabi" => { + "thumbv6m-none-eabi" | "xtensa-esp32s2-none-elf" => { println!("cargo:rustc-cfg=cas_atomic_polyfill"); } _ => {}