nix-super/src/libstore
Peter Simons 8b7f8b56f1 Added support for passing an (impure) NIX_BUILD_CORES variable to build expressions.
This patch adds the configuration file variable "build-cores" and the
command line argument "--cores". These settings specify the number of
CPU cores to utilize for parallel building within a job, i.e. by passing
an appropriate "-j" flag to GNU Make. The default value is 1, which
means that parallel building is *disabled*. If the number of build cores
is specified as 0 (synonymously: "guess" or "auto"), then the actual
value is supposed to be auto-detected by builders at run-time, i.e by
calling the nproc(1) utility from coreutils.

The environment variable $NIX_BUILD_CORES is available to builders, but
the contents of that variable does *not* influence the hash that goes
into the $out store path, i.e. the number of build cores to be utilized
can be changed at will without requiring any re-builds.
2010-06-23 14:34:08 +00:00
..
build.cc Added support for passing an (impure) NIX_BUILD_CORES variable to build expressions. 2010-06-23 14:34:08 +00:00
derivations.cc * Don't use an ostringstream in unparseDerivation(), because it's 2010-04-21 19:25:50 +00:00
derivations.hh * Don't use the ATerm library for parsing/printing .drv files. 2010-04-19 13:46:58 +00:00
gc.cc * Remove most Cygwin-specific code. Cygwin 1.7 implements advisory 2010-02-02 15:28:36 +00:00
globals.cc Added support for passing an (impure) NIX_BUILD_CORES variable to build expressions. 2010-06-23 14:34:08 +00:00
globals.hh Added support for passing an (impure) NIX_BUILD_CORES variable to build expressions. 2010-06-23 14:34:08 +00:00
local-store.cc * In importPath() and exportPath(), lock the temporary directory to 2010-06-14 08:34:48 +00:00
local-store.hh * Added an option "fsync-metadata" to fsync() changes to 2010-01-29 12:22:58 +00:00
Makefile.am * Drop the dependency on the ATerm library. 2010-04-19 14:51:58 +00:00
misc.cc * Don't use the ATerm library for parsing/printing .drv files. 2010-04-19 13:46:58 +00:00
misc.hh * Made `nix-store -qR --include-outputs' much faster if there are 2010-01-25 17:18:44 +00:00
optimise-store.cc * Applied a patch from David Brown to prevent `nix-store --optimise' 2010-06-04 13:56:11 +00:00
pathlocks.cc * Revert r19797, and use a simpler solution: just don't monitor build 2010-02-03 21:38:41 +00:00
pathlocks.hh * Revert r19797, and use a simpler solution: just don't monitor build 2010-02-03 21:38:41 +00:00
references.cc 2009-03-30 19:35:55 +00:00
references.hh * Scan for references and compute the SHA-256 hash of the output in 2009-03-28 20:51:33 +00:00
remote-store.cc * Remove the --use-atime / --max-atime garbage collector flags. Many 2009-11-20 17:12:38 +00:00
remote-store.hh * Open the connection to the daemon lazily (on demand) so that 2008-12-11 14:30:25 +00:00
store-api.cc * Make the garbage collector do the right thing when `gc-keep-outputs' 2010-01-25 16:04:32 +00:00
store-api.hh * Turn build errors during evaluation into EvalErrors. 2010-06-01 11:19:32 +00:00
worker-protocol.hh * Pass --use-atime / --max-atime to the daemon. 2008-12-16 12:23:35 +00:00