mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 00:39:37 +01:00
Merge pull request #13402 from DavHau/build-cores
build-cores: detect cores automatically if set to 0
This commit is contained in:
commit
b19e9acc03
8 changed files with 58 additions and 10 deletions
|
|
@ -535,7 +535,7 @@ static void main_nix_build(int argc, char * * argv)
|
|||
|
||||
env["NIX_BUILD_TOP"] = env["TMPDIR"] = env["TEMPDIR"] = env["TMP"] = env["TEMP"] = tmpDir.path().string();
|
||||
env["NIX_STORE"] = store->storeDir;
|
||||
env["NIX_BUILD_CORES"] = std::to_string(settings.buildCores);
|
||||
env["NIX_BUILD_CORES"] = fmt("%d", settings.buildCores ? settings.buildCores : settings.getDefaultCores());
|
||||
|
||||
auto parsedDrv = StructuredAttrs::tryParse(drv.env);
|
||||
DerivationOptions drvOptions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue