diff options
| author | bors <bors@rust-lang.org> | 2021-06-06 01:02:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-06 01:02:32 +0000 |
| commit | d7db869e7d85d1bc052b29a35f914ab9684b8baa (patch) | |
| tree | d9a35ee8775e709275448ee5ddf61e075f67f3f2 | |
| parent | d8d6a5aee0b258d5727d647d3943a75e66924932 (diff) | |
| parent | 64e08e6b82711b24517b97de0364511d06d1e27f (diff) | |
| download | rust-d7db869e7d85d1bc052b29a35f914ab9684b8baa.tar.gz rust-d7db869e7d85d1bc052b29a35f914ab9684b8baa.zip | |
Auto merge of #79608 - alessandrod:bpf, r=nagisa
BPF target support This adds `bpfel-unknown-none` and `bpfeb-unknown-none`, two new no_std targets that generate little and big endian BPF. The approach taken is very similar to the cuda target, where `TargetOptions::obj_is_bitcode` is enabled and code generation is done by the linker. I added the targets to `dist-various-2`. There are [some tests](https://github.com/alessandrod/bpf-linker/tree/main/tests/assembly) in bpf-linker and I'm planning to add more. Those are currently not ran as part of rust CI.
| -rw-r--r-- | src/toolchain.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/toolchain.rs b/src/toolchain.rs index 484a9b699a0..49475fe2469 100644 --- a/src/toolchain.rs +++ b/src/toolchain.rs @@ -67,6 +67,7 @@ fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) { LinkerFlavor::Msvc => "link.exe", LinkerFlavor::Lld(_) => "lld", LinkerFlavor::PtxLinker => "rust-ptx-linker", + LinkerFlavor::BpfLinker => "bpf-linker", }), flavor, )), |
