summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-01-06 19:34:14 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-01-08 15:40:23 -0800
commit3a324245485e1430f779c316315ce367886cb594 (patch)
treed9366ecbd67a81376a882cee92bc5edcd96fe3e8 /eclass/cargo.eclass
parentsys-libs/glibc: 2.28 revision bump, work in progress. (diff)
downloadgentoo-3a324245485e1430f779c316315ce367886cb594.tar.gz
gentoo-3a324245485e1430f779c316315ce367886cb594.tar.bz2
gentoo-3a324245485e1430f779c316315ce367886cb594.zip
cargo.eclass: allow passing additional arguments to cargo
for example: src_compile() { cargo_src_compile --features pcre2 } Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 50f7830c51bc..06c85ce9de80 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cargo.eclass
@@ -122,7 +122,7 @@ cargo_src_compile() {
export CARGO_HOME="${ECARGO_HOME}"
- cargo build -j $(makeopts_jobs) $(usex debug "" --release) \
+ cargo build -j $(makeopts_jobs) $(usex debug "" --release) "$@" \
|| die "cargo build failed"
}
@@ -132,7 +132,7 @@ cargo_src_compile() {
cargo_src_install() {
debug-print-function ${FUNCNAME} "$@"
- cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") \
+ cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") "$@" \
|| die "cargo install failed"
rm -f "${D}/usr/.crates.toml"