about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2020-11-30 19:41:57 +0000
committerAlessandro Decina <alessandro.d@gmail.com>2021-05-23 18:03:27 +1000
commit12e70929d66577f74cb6214bba5bf104e1f14aa2 (patch)
tree140448195cdbf393d03330a6ee276a42b2ca8156 /compiler/rustc_codegen_cranelift/src
parent92418ce65aa9d45fd1af355136d65493254a344a (diff)
downloadrust-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.rs1
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,
             )),