diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-06-15T14·34+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-06-15T14·34+0200 |
commit | 34fa8ce9179b17cc4cd13ae49b69fccf393271a0 (patch) | |
tree | eefbabf6d804f731f65eee424c5f10c2bacd746d /src/libmain/common-args.cc | |
parent | 7ce60a81ba30f681d3913b7c42cdfbcfca902492 (diff) |
nix: Support -j flag
Diffstat (limited to 'src/libmain/common-args.cc')
-rw-r--r-- | src/libmain/common-args.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libmain/common-args.cc b/src/libmain/common-args.cc index 4c35a4199590..9e1d7cee60e6 100644 --- a/src/libmain/common-args.cc +++ b/src/libmain/common-args.cc @@ -35,6 +35,15 @@ MixCommonArgs::MixCommonArgs(const string & programName) } }); + mkFlag() + .longName("max-jobs") + .shortName('j') + .label("jobs") + .description("maximum number of parallel builds") + .handler([=](std::string s) { + settings.set("max-jobs", s); + }); + std::string cat = "config"; globalConfig.convertToArgs(*this, cat); |