Skip to content

Commit

Permalink
make: Use LLVM 15 for release builds
Browse files Browse the repository at this point in the history
libpcap.a built with LLVM 13 produces the following [1]:

    Failed to inject filter ebpf for kprobe_skb_2: register r8 used twice

[1]: #245 (comment)

Signed-off-by: Martynas Pumputis <[email protected]>
  • Loading branch information
brb committed Sep 5, 2023
1 parent 80d7973 commit 50c2e2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ release:
--rm \
--workdir /pwru \
--volume `pwd`:/pwru docker.io/library/golang:1.20.5 \
sh -c "apt update && apt install -y make git clang-13 llvm curl gcc flex bison gcc-aarch64* libc6-dev-arm64-cross && \
ln -s /usr/bin/clang-13 /usr/bin/clang && \
sh -c "apt update && apt install -y make git clang-15 llvm curl gcc flex bison gcc-aarch64* libc6-dev-arm64-cross && \
ln -s /usr/bin/clang-15 /usr/bin/clang && \
git config --global --add safe.directory /pwru && \
make local-release"

local-release: clean
# TODO(brb) remove once https://github.com/cilium/pwru/issues/246 is resolved
clang --version
gcc --version
ARCHS='amd64 arm64' ./local-release.sh

install: $(TARGET)
Expand Down

0 comments on commit 50c2e2f

Please sign in to comment.