Skip to content

Commit d7db869

Browse files
committed
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.
2 parents d8d6a5a + 64e08e6 commit d7db869

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/toolchain.rs

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
6767
LinkerFlavor::Msvc => "link.exe",
6868
LinkerFlavor::Lld(_) => "lld",
6969
LinkerFlavor::PtxLinker => "rust-ptx-linker",
70+
LinkerFlavor::BpfLinker => "bpf-linker",
7071
}),
7172
flavor,
7273
)),

0 commit comments

Comments
 (0)