Skip to content

Commit fd1986d

Browse files
committed
Fix stylechecker CI: configure LLVM before bpf-linker install
1 parent 73cc7b0 commit fd1986d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

circleci/images/stylechecker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profil
6565
. "$CARGO_HOME/env"
6666
rustup toolchain install nightly-x86_64-unknown-linux-musl
6767
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-musl
68-
cargo install --locked bpf-linker --no-default-features --features llvm-21
6968
export PATH="/root/.cargo/bin:${PATH}"
69+
export PATH="/usr/lib/llvm21/bin:${PATH}"
7070

7171
LLVM_CONFIG="$(command -v llvm-config || command -v llvm-config-21)"
7272
LLVM_LIBDIR="$(${LLVM_CONFIG} --libdir)"
@@ -78,6 +78,8 @@ export LLVM_SYS_211_STATIC=1
7878
export AYA_RUSTC_LLVM_PROXY_DISABLE_DLOPEN=1
7979
export AYA_RUSTC_LLVM_PROXY_LIB_DIR="${LLVM_LIBDIR}"
8080

81+
cargo install --locked bpf-linker --no-default-features --features llvm-21
82+
8183

8284
install -m 755 "$CARGO_HOME/bin/bpf-linker" /usr/local/bin/bpf-linker
8385

0 commit comments

Comments
 (0)