From 0168396604c15cb0fb7e065b0eeb6a57c05efefd Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 18 Jul 2023 16:25:13 -0400 Subject: [PATCH] integration-ebpf: add cargo config Same reasoning as the one in bpf. --- bpf/.cargo/config.toml | 2 +- test/integration-ebpf/.cargo/config.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/integration-ebpf/.cargo/config.toml diff --git a/bpf/.cargo/config.toml b/bpf/.cargo/config.toml index 61fc56a9..d8d7a20c 100644 --- a/bpf/.cargo/config.toml +++ b/bpf/.cargo/config.toml @@ -6,7 +6,7 @@ # ignored if you run from the workspace root. See # https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure [build] -target = "bpfel-unknown-none" +target = ["bpfeb-unknown-none", "bpfel-unknown-none"] [unstable] build-std = ["core"] diff --git a/test/integration-ebpf/.cargo/config.toml b/test/integration-ebpf/.cargo/config.toml new file mode 100644 index 00000000..d8d7a20c --- /dev/null +++ b/test/integration-ebpf/.cargo/config.toml @@ -0,0 +1,12 @@ +# We have this so that one doesn't need to manually pass +# --target=bpfel-unknown-none -Z build-std=core when running cargo +# check/build/doc etc. +# +# NB: this file gets loaded only if you run cargo from this directory, it's +# ignored if you run from the workspace root. See +# https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure +[build] +target = ["bpfeb-unknown-none", "bpfel-unknown-none"] + +[unstable] +build-std = ["core"]