Rollup merge of #106796 - vadorovsky:revert-105708-enable-atomic-cas-bpf, r=bjorn3
BPF: Disable atomic CAS Enabling CAS for BPF targets (https://github.com/rust-lang/rust/pull/105708) breaks the build of core library. The failure occurs both when building rustc for BPF targets and when building crates for BPF targets with the current nightly. The LLVM BPF backend does not correctly lower all `atomicrmw` operations and crashes for unsupported ones. Before we can enable CAS for BPF in Rust, we need to fix the LLVM BPF backend first. Fixes #106795 Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
This commit is contained in:
commit
9e79642a7b
@ -6,7 +6,7 @@ pub fn opts(endian: Endian) -> TargetOptions {
|
|||||||
allow_asm: true,
|
allow_asm: true,
|
||||||
endian,
|
endian,
|
||||||
linker_flavor: LinkerFlavor::Bpf,
|
linker_flavor: LinkerFlavor::Bpf,
|
||||||
atomic_cas: true,
|
atomic_cas: false,
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
no_builtins: true,
|
no_builtins: true,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
Loading…
Reference in New Issue
Block a user