build-style/cargo: don't manually configure with cargo, use the

environment.
This commit is contained in:
maxice8 2019-01-19 19:13:47 -02:00 committed by maxice8
parent 54040e4b1b
commit 8ddc68306e

View file

@ -2,18 +2,6 @@
# This helper is for building rust projects which use cargo for building
#
do_configure() {
mkdir -p ${HOME}/.cargo
# respect makejobs, do cross stuff
cat > ${HOME}/.cargo/config <<EOF
[build]
jobs = ${makejobs#*j}
[target.${RUST_TARGET}]
linker = "${CC}"
EOF
}
do_build() {
: ${make_cmd:=cargo}