about summary refs log tree commit diff
path: root/compiler/rustc_target/src/spec/bpf_base.rs
AgeCommit message (Collapse)AuthorLines
2023-11-08target: move base specs to spec/baseDavid Wood-29/+0
Signed-off-by: David Wood <david@davidtw.co>
2023-01-14BPF: Disable atomic CASMichal Rostecki-1/+1
Enabling CAS for BPF targets (#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>
2022-12-14Enable atomic cas for bpf targetsTomer Zeitune-1/+5
2022-09-01rustc_target: Refactor internal linker flavors slightlyVadim Petrochenkov-1/+1
Remove one unstable user-facing linker flavor (l4-bender)
2022-07-11rustc_target: Flip the default for `TargetOptions::executables` to trueVadim Petrochenkov-1/+0
Also change `executables` to true for linux-kernel and windows-uwp-gnu targets
2021-07-06Replace per-target ABI denylist with an allowlistSimonas Kazlauskas-17/+1
It makes very little sense to maintain denylists of ABIs when, as far as non-generic ABIs are concerned, targets usually only support a small subset of the available ABIs. This has historically been a cause of bugs such as us allowing use of the platform-specific ABIs on x86 targets – these in turn would cause LLVM errors or assertions to fire. Fixes #57182 Sponsored by: standard.ai
2021-05-29BPF: misc minor review fixesAlessandro Decina-0/+4
2021-05-23Add support for BPF inline assemblyAlessandro Decina-0/+1
2021-05-23Add BPF targetAlessandro Decina-0/+37
This change adds the bpfel-unknown-none and bpfeb-unknown-none targets which can be used to generate little endian and big endian BPF