From 0af2316a673a4e4293ead7630db61a567bb4cd37 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 3 Oct 2024 18:24:02 +0100 Subject: [PATCH] Disable lld linking We need to use Rust nightly (for bpf target), which defaults to LLD now. However Rust-bundled LLD doesn't work very well under NixOS. --- .cargo/config.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..5032741 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-unknown-linux-gnu] +rustflags = ["-Zlinker-features=-lld"]