We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb22a06 + 11331b1 commit 03dc5c9Copy full SHA for 03dc5c9
compiler/rustc_target/src/spec/bpf_base.rs
@@ -6,7 +6,7 @@ pub fn opts(endian: Endian) -> TargetOptions {
6
allow_asm: true,
7
endian,
8
linker_flavor: LinkerFlavor::Bpf,
9
- atomic_cas: false,
+ atomic_cas: true,
10
dynamic_linking: true,
11
no_builtins: true,
12
panic_strategy: PanicStrategy::Abort,
@@ -19,6 +19,10 @@ pub fn opts(endian: Endian) -> TargetOptions {
19
obj_is_bitcode: true,
20
requires_lto: false,
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),
26
max_atomic_width: Some(64),
27
..Default::default()
28
}
0 commit comments