guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#74767] [PATCH rust-team 02/23] build/cargo: Honor #:parallel-build?


From: Maxim Cournoyer
Subject: [bug#74767] [PATCH rust-team 02/23] build/cargo: Honor #:parallel-build? and #:parallel-tests? arguments.
Date: Wed, 11 Dec 2024 10:11:47 +0900
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Efraim,

Efraim Flashner <efraim@flashner.co.il> writes:

> Should probably have cargo test not honor both parallel-build and
> parallel-tests at the same time.

According to the doc [0], these switches are different; -j will cause the
test binaries or other assets to be built in parallel, while
--test-threads will cause the parallelization of tests.  I believe
that's the same we currently do for gnu-build-system.

[0]  
https://doc.rust-lang.org/cargo/commands/cargo-test.html#miscellaneous-options

> Also, currently the builds and tests try to use all the cores available,
> so if parallel-{build,tests} is false it should go down to 1.

Good point.  I'll fix that.

-- 
Thanks,
Maxim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]