Skip to content

Commit

Permalink
fix(ebpf): nix env fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snormore committed Jun 9, 2024
1 parent 2607767 commit b182411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions etc/ebpf/ebpf/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![feature(offset_of)]
#![no_std]
#![no_main]

Expand Down
4 changes: 1 addition & 3 deletions etc/ebpf/scripts/prepare-macos
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b182411

Please sign in to comment.