From a9a659716bb937eb5435c4c7b662dcbbfc822989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=C2=A0Decina?= Date: Fri, 17 Sep 2021 12:35:46 +0000 Subject: [PATCH] ebpf: set target and enable -Z build-std in .cargo/config.toml This makes it possible to build with: cd {{project-name}}-ebpf && cargo +nightly build --- {{project-name}}-ebpf/.cargo/config.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/{{project-name}}-ebpf/.cargo/config.toml b/{{project-name}}-ebpf/.cargo/config.toml index e6759b6..5d7e591 100644 --- a/{{project-name}}-ebpf/.cargo/config.toml +++ b/{{project-name}}-ebpf/.cargo/config.toml @@ -1,2 +1,6 @@ [build] -target-dir = "../target" \ No newline at end of file +target-dir = "../target" +target = "bpfel-unknown-none" + +[unstable] +build-std = ["core"] \ No newline at end of file