Commit Graph

2 Commits

Author SHA1 Message Date
Florian Schneider 74d2f37a86 Improve ctrl-C handling in ninja.py.
This enables interrupting by pressing ctrl-C.

BUG=
R=zra@google.com

Review-Url: https://codereview.chromium.org/2725493002 .
2017-02-27 15:38:45 -08:00
Zachary Anderson 1f0168b95c Adds tools/ninja.py that runs goma builds in parallel
This CL adds a script tools/ninja.py that runs Goma enabled builds
in parallel. Non-goma builds are run serially, as before.

Conflating this feature with gyp support in tools/build.py
got to be a bit of a mess, which is why this is split off as a
separate script. This script can replace build.py after gyp support
is removed.

With a warm goma:
$ time ./tools/build.py -m debug,release -a x64,ia32 runtime runtime_precompiled
...
real	4m25.627s
user	3m30.740s
sys	1m3.873s

$ ./tools/ninja.py -m debug,release -a x64,ia32 runtime runtime_precompiled
...
The build took 108.900 seconds

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2712743009 .
2017-02-27 10:55:01 -08:00