build-style/cargo: don't manually configure with cargo, use the
environment.
This commit is contained in:
@@ -2,18 +2,6 @@
|
|||||||
# This helper is for building rust projects which use cargo for building
|
# 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() {
|
do_build() {
|
||||||
: ${make_cmd:=cargo}
|
: ${make_cmd:=cargo}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user