mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
common/build-helper/rust.sh: allow specifying BINDGEN_EXTRA_CLANG_ARGS
This commit is contained in:
parent
4675905431
commit
eb9d775838
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
export HOST_CFLAGS="-O2"
|
export HOST_CFLAGS="-O2"
|
||||||
|
|
||||||
# Crates that use bindgen via build.rs are not cross-aware unless these are set
|
# Crates that use bindgen via build.rs are not cross-aware unless these are set
|
||||||
export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${XBPS_CROSS_BASE} -I${XBPS_CROSS_BASE}/usr/include"
|
export BINDGEN_EXTRA_CLANG_ARGS+=" --sysroot=${XBPS_CROSS_BASE} -I${XBPS_CROSS_BASE}/usr/include"
|
||||||
else
|
else
|
||||||
unset CARGO_BUILD_TARGET
|
unset CARGO_BUILD_TARGET
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue