diff --git a/etc/ebpf/ebpf/src/main.rs b/etc/ebpf/ebpf/src/main.rs index d4b55751f..5dd1090a9 100644 --- a/etc/ebpf/ebpf/src/main.rs +++ b/etc/ebpf/ebpf/src/main.rs @@ -1,3 +1,4 @@ +#![feature(offset_of)] #![no_std] #![no_main] diff --git a/etc/ebpf/scripts/prepare-macos b/etc/ebpf/scripts/prepare-macos index c1106f6db..83e79b77d 100755 --- a/etc/ebpf/scripts/prepare-macos +++ b/etc/ebpf/scripts/prepare-macos @@ -18,9 +18,7 @@ fi export PATH="/opt/homebrew/opt/llvm/bin:$PATH" # Check for bpf-linker installation and install if not found -if ! cargo install --list | grep -q 'bpf-linker'; then - cargo install bpf-linker --no-default-features -fi +cargo install bpf-linker --no-default-features # Update RUSTFLAGS environment variable to include llvm libraries. export RUSTFLAGS="-L/opt/homebrew/opt/llvm/lib"