common: unset rust-cross specific variables for native builds

This commit is contained in:
Johannes 2019-02-08 17:36:42 +01:00 committed by Johannes
parent 607aa7df3c
commit 026ebc069e
2 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,8 @@ if [ "$CROSS_BUILD" ]; then
# [build]
# target = ${RUST_TARGET}
export CARGO_BUILD_TARGET="$RUST_TARGET"
else
unset CARGO_BUILD_TARGET
fi
# For cross-compiling rust -sys crates