diff options
| author | Alessandro Decina <alessandro.d@gmail.com> | 2020-11-30 19:41:57 +0000 |
|---|---|---|
| committer | Alessandro Decina <alessandro.d@gmail.com> | 2021-05-23 18:03:27 +1000 |
| commit | 12e70929d66577f74cb6214bba5bf104e1f14aa2 (patch) | |
| tree | 140448195cdbf393d03330a6ee276a42b2ca8156 /compiler/rustc_codegen_cranelift/src | |
| parent | 92418ce65aa9d45fd1af355136d65493254a344a (diff) | |
| download | rust-12e70929d66577f74cb6214bba5bf104e1f14aa2.tar.gz rust-12e70929d66577f74cb6214bba5bf104e1f14aa2.zip | |
Add BPF target
This change adds the bpfel-unknown-none and bpfeb-unknown-none targets which can be used to generate little endian and big endian BPF
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/toolchain.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/toolchain.rs b/compiler/rustc_codegen_cranelift/src/toolchain.rs index 484a9b699a0..49475fe2469 100644 --- a/compiler/rustc_codegen_cranelift/src/toolchain.rs +++ b/compiler/rustc_codegen_cranelift/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, )), |
