mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
nix: Support -j flag
This commit is contained in:
parent
7ce60a81ba
commit
34fa8ce917
2 changed files with 9 additions and 4 deletions
|
@ -175,10 +175,6 @@ LegacyArgs::LegacyArgs(const std::string & programName,
|
|||
.description("build from source if substitution fails")
|
||||
.set(&(bool&) settings.tryFallback, true);
|
||||
|
||||
mkFlag1('j', "max-jobs", "jobs", "maximum number of parallel builds", [=](std::string s) {
|
||||
settings.set("max-jobs", s);
|
||||
});
|
||||
|
||||
auto intSettingAlias = [&](char shortName, const std::string & longName,
|
||||
const std::string & description, const std::string & dest) {
|
||||
mkFlag<unsigned int>(shortName, longName, description, [=](unsigned int n) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue