Could we extract -j N
from MAKEFLAGS
and pass to cargo
?
Check out my solution for scons
:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=boost-python2#n38
local JOBS; JOBS="$(grep -oP -- "-j\s*[0-9]+" <<< "${MAKEFLAGS}")" || JOBS="-j1"
cargo build "${JOBS}" --locked --features "${_features:-}" --release --target-dir target
Pinned Comments
haxie commented on 2023-05-26 17:45 (UTC)
you're better off contacting her via the github, this comments section is 90% "it's out of date" from people who didn't scroll down before posting