Skip to content

Commit 644653b

Browse files
bors[bot]Flole998
andauthored
Merge #339
339: Add polyfills for ESP32S2 r=korken89 a=Flole998 Co-authored-by: Flole998 <[email protected]>
2 parents 217456a + 0293503 commit 644653b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
- Add `HistoryBuffer::as_slices()`
1515
- Implemented `retain` for `IndexMap` and `IndexSet`.
1616
- Recover `StableDeref` trait for `pool::object::Object` and `pool::boxed::Box`.
17+
- Add polyfills for ESP32S2
1718

1819
### Changed
1920

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ atomic-polyfill = { version = "1.0.1" }
3434
[target.riscv32imc-unknown-none-elf.dependencies]
3535
atomic-polyfill = { version = "1.0.1" }
3636

37+
[target.xtensa-esp32s2-none-elf.dependencies]
38+
atomic-polyfill = { version = "1.0.1" }
39+
3740
[target.'cfg(target_arch = "avr")'.dependencies]
3841
atomic-polyfill = { version = "1.0.1", optional = true }
3942

build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ fn main() -> Result<(), Box<dyn Error>> {
7676
println!("cargo:rustc-cfg=cas_atomic_polyfill");
7777
} else {
7878
match &target[..] {
79-
"riscv32i-unknown-none-elf" | "riscv32imc-unknown-none-elf" => {
79+
"riscv32i-unknown-none-elf"
80+
| "riscv32imc-unknown-none-elf"
81+
| "xtensa-esp32s2-none-elf" => {
8082
println!("cargo:rustc-cfg=full_atomic_polyfill");
8183
println!("cargo:rustc-cfg=cas_atomic_polyfill");
8284
}

0 commit comments

Comments
 (0)