[macports-base] branch master updated: portbuild: Pass -j for parallel builds to cargo

Rainer Müller raimue at macports.org
Mon Apr 2 20:48:22 UTC 2018


On 2018-04-02 22:13, Jeremy Huddleston Sequoia wrote:
> This causes cargo to fail to build with -j being unrecognized.
> 
> --->  Building cargo
> Executing:  cd
> "/opt/local/var/macports/build/_Users_jeremy_src_macports_macports-ports_devel_cargo/cargo/work/cargo-0.25.0"
> && /opt/local/var/macports/build/_Users_jeremy_src_macports_macports-ports_devel_cargo/cargo/work/cargo-0.24.0-x86_64-apple-darwin/cargo/bin/cargo
> -j4 --release -j4 
> error: Unknown flag: '-j'

Indeed, thanks for noticing.

The -jX argument would only be valid after the sub-command, for example
'cargo build -j4'. It worked with the cargo port group, because there I
set it up like this:

build.cmd           cargo build
build.target        --release

I guess I will rather add -jX to the port group and revert the change in
base as it seems unreliable to add it this way.

Rainer


More information about the macports-dev mailing list