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 {
15
15
linker : Some ( "riscv32-esp-elf-gcc" . into ( ) ) ,
16
16
cpu : "generic-rv32" . into ( ) ,
17
17
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.
23
20
max_atomic_width : Some ( 64 ) ,
24
21
atomic_cas : true ,
25
22
You can’t perform that action at this time.
0 commit comments