Skip to content

Commit d2618e3

Browse files
committed
Better atomic comment aligned with the target
1 parent e118399 commit d2618e3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/rustc_target/src/spec/riscv32imac_esp_espidf.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ pub fn target() -> Target {
1515
linker: Some("riscv32-esp-elf-gcc".into()),
1616
cpu: "generic-rv32".into(),
1717

18-
// While the RiscV32IMC architecture does not natively support atomics, ESP-IDF does support
19-
// the __atomic* and __sync* GCC builtins, so setting `max_atomic_width` to `Some(64)`
20-
// and `atomic_cas` to `true` will cause the compiler to emit libcalls to these builtins.
21-
//
22-
// Support for atomics is necessary for the Rust STD library, which is supported by the ESP-IDF framework.
18+
// As RiscV32IMAC architecture does natively support atomics,
19+
// automatically enable the support for the Rust STD library.
2320
max_atomic_width: Some(64),
2421
atomic_cas: true,
2522

0 commit comments

Comments
 (0)