nixpkgs/pkgs/build-support/rust/build-rust-crate
Daniël de Kok e87d457564 buildRustCrate: set NUM_JOBS to NIX_BUILD_CORES
Bofore this change, NUM_JOBS was set to 1. Some crates for building
C/C++ code (e.g. the cc and cmake crates), rely on this variable to
set the number of jobs. As a consequence, we were compiling embedded
libraries serially. Change this to NIX_BUILD_CORES to permit parallel
builds.

Prior discussion:

https://github.com/NixOS/nixpkgs/pull/50452#issuecomment-439407547
2020-12-03 12:44:12 +01:00
..
test buildRustCrateTests: support cross-compilation 2020-09-29 14:33:49 -04:00
build-crate.nix rust: Add support for managing target JSON in Nix 2020-10-14 04:20:23 +00:00
configure-crate.nix buildRustCrate: set NUM_JOBS to NIX_BUILD_CORES 2020-12-03 12:44:12 +01:00
default.nix buildRustCrate: add host platform to rlib hash suffix 2020-11-28 22:25:11 -05:00
helpers.nix buildRustCrate: fixup usage of builtins.filterSource 2020-01-07 00:49:48 +01:00
install-crate.nix buildRustCrate: Add tests for checking files in outputs. 2020-03-29 13:00:21 +02:00
lib.sh buildRustCrate: editorconfig fixes 2020-08-09 17:47:12 +10:00
log.nix buildRustCrate: editorconfig fixes 2020-08-09 17:47:12 +10:00