File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
compiler/rustc_target/src/spec Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments