File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/rustc_target/src/spec Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pub fn opts(endian: Endian) -> TargetOptions {
6
6
allow_asm : true ,
7
7
endian,
8
8
linker_flavor : LinkerFlavor :: Bpf ,
9
- atomic_cas : false ,
9
+ atomic_cas : true ,
10
10
dynamic_linking : true ,
11
11
no_builtins : true ,
12
12
panic_strategy : PanicStrategy :: Abort ,
@@ -19,6 +19,10 @@ pub fn opts(endian: Endian) -> TargetOptions {
19
19
obj_is_bitcode : true ,
20
20
requires_lto : false ,
21
21
singlethread : true ,
22
+ // When targeting the `v3` cpu in llvm, 32-bit atomics are also supported.
23
+ // But making this value change based on the target cpu can be mostly confusing
24
+ // and would require a bit of a refactor.
25
+ min_atomic_width : Some ( 64 ) ,
22
26
max_atomic_width : Some ( 64 ) ,
23
27
..Default :: default ( )
24
28
}
You can’t perform that action at this time.
0 commit comments