diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-19T15·02+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-19T15·02+0000 |
commit | ef5f254a55a2d6db09d3d0549ed45701558027e0 (patch) | |
tree | 0d494367c124e760a27f822c7faeb5bc5ec86a98 /src/nix-store | |
parent | 06c77bf7a861221d41b5db9fad3002f13a14ed0e (diff) |
* `nix-store --build' now builds its arguments in parallel instead of
sequentially (within the limits set by `--jobs'). This should greatly improve the utilisation of the build farm when doing Nixpkgs builds.
Diffstat (limited to 'src/nix-store')
-rw-r--r-- | src/nix-store/main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix-store/main.cc b/src/nix-store/main.cc index 12b61c76f787..7c86395a640d 100644 --- a/src/nix-store/main.cc +++ b/src/nix-store/main.cc @@ -32,10 +32,11 @@ static void opBuild(Strings opFlags, Strings opArgs) { if (!opFlags.empty()) throw UsageError("unknown flag"); + buildDerivations(PathSet(opArgs.begin(), opArgs.end())); + for (Strings::iterator i = opArgs.begin(); i != opArgs.end(); i++) { - buildDerivation(*i); Derivation drv = derivationFromPath(*i); cout << format("%1%\n") % findOutput(drv, "out"); } |