Force unset CARGO to use correct version of cargo (#13027)
This commit is contained in:
parent
83c53ae4b5
commit
81d0c8ae7f
|
@ -34,6 +34,10 @@ export RUSTFLAGS="
|
||||||
-C link-arg=-no-threads \
|
-C link-arg=-no-threads \
|
||||||
-C linker=$bpf_sdk/dependencies/llvm-native/bin/ld.lld"
|
-C linker=$bpf_sdk/dependencies/llvm-native/bin/ld.lld"
|
||||||
|
|
||||||
|
# CARGO may be set if build.sh is run from within cargo, causing
|
||||||
|
# incompatibilities between cargo and xargo versions
|
||||||
|
unset CARGO
|
||||||
|
|
||||||
# Setup xargo
|
# Setup xargo
|
||||||
export XARGO_HOME="$bpf_sdk/dependencies/xargo"
|
export XARGO_HOME="$bpf_sdk/dependencies/xargo"
|
||||||
export XARGO_RUST_SRC="$bpf_sdk/dependencies/rust-bpf-sysroot/src"
|
export XARGO_RUST_SRC="$bpf_sdk/dependencies/rust-bpf-sysroot/src"
|
||||||
|
|
Loading…
Reference in New Issue