platform/upstream/ninja.git
12 years agoSwitch LineReader from fgets() to just fread().
Nico Weber [Thu, 10 May 2012 05:20:52 +0000 (22:20 -0700)]
Switch LineReader from fgets() to just fread().

fgets() needs to search for a \n in the input, and LineReader's
strstr() did the same work again. By using fread() directly, this
duplicate work can be saved.

(I tried using readline() / fgetln() for the same saving, but those
functions are not standard, and were slower than the code in this CL.)

Results from running build_log_perftest, on OS X:
Before: min 369ms  max 372ms  avg 370.4ms
After:  min 243ms  max 247ms  avg 244.8ms

On Windows:
Before: min 796ms  max 904ms  avg 858.0ms
After:  min 359ms  max 375ms  avg 371.4ms

On Linux:
Before: min 161ms  max 169ms  avg 164.8ms
Before: min 130ms  max 137ms  avg 132.6ms

12 years agoPull BuildLog line reading into its own class. No performance or behavior change.
Nico Weber [Thu, 10 May 2012 05:13:58 +0000 (22:13 -0700)]
Pull BuildLog line reading into its own class. No performance or behavior change.

12 years agoMerge pull request #307 from sgraham/nul-input
Evan Martin [Wed, 9 May 2012 19:48:45 +0000 (12:48 -0700)]
Merge pull request #307 from sgraham/nul-input

pass subprocesses handle to nul device rather than null handle

12 years agopass subprocesses handle to nul device rather than null handle
Scott Graham [Wed, 9 May 2012 19:30:58 +0000 (12:30 -0700)]
pass subprocesses handle to nul device rather than null handle

12 years agoMerge pull request #305 from nico/winperftest
Evan Martin [Wed, 9 May 2012 04:25:28 +0000 (21:25 -0700)]
Merge pull request #305 from nico/winperftest

Make parser_perftest and build_log_perftest link on Windows.

12 years agoMake parser_perftest and build_log_perftest link on Windows.
Nico Weber [Wed, 9 May 2012 03:40:00 +0000 (20:40 -0700)]
Make parser_perftest and build_log_perftest link on Windows.

12 years agoMerge pull request #304 from nico/perftest
Evan Martin [Wed, 9 May 2012 02:40:21 +0000 (19:40 -0700)]
Merge pull request #304 from nico/perftest

Add a BuildLog loading perftest.

12 years agoAdd a BuildLog loading perftest.
Nico Weber [Tue, 8 May 2012 22:50:24 +0000 (15:50 -0700)]
Add a BuildLog loading perftest.

12 years agoinclude version number
Evan Martin [Mon, 7 May 2012 04:47:46 +0000 (21:47 -0700)]
include version number

12 years agoclarify what i mean by "policy"
Evan Martin [Mon, 7 May 2012 15:53:26 +0000 (08:53 -0700)]
clarify what i mean by "policy"

12 years agoMerge pull request #301 from nico/logfix
Evan Martin [Tue, 8 May 2012 16:02:59 +0000 (09:02 -0700)]
Merge pull request #301 from nico/logfix

Don't write ninja log header to log on every build on Windows.

12 years agoDon't write ninja log header to log on every build on Windows.
Nico Weber [Tue, 8 May 2012 15:37:27 +0000 (08:37 -0700)]
Don't write ninja log header to log on every build on Windows.

12 years agoMerge pull request #297 from nico/colorclang
Evan Martin [Mon, 7 May 2012 04:36:45 +0000 (21:36 -0700)]
Merge pull request #297 from nico/colorclang

Produce colored diagnostics when building ninja with clang.

12 years agoMerge pull request #299 from tfarina/explicit-ctors
Evan Martin [Mon, 7 May 2012 04:23:49 +0000 (21:23 -0700)]
Merge pull request #299 from tfarina/explicit-ctors

views: Mark single-argument constructors as explicit.

12 years agoviews: Mark single-argument constructors as explicit.
Thiago Farina [Sun, 6 May 2012 22:31:16 +0000 (19:31 -0300)]
views: Mark single-argument constructors as explicit.

This was reported by cpplint as:

python ~/depot_tools/cpplint.py 2>&1 | grep -v "Done processing" | grep explicit

Signed-off-by: Thiago Farina <tfarina@chromium.org>
12 years agoMerge pull request #298 from tfarina/build-log-string
Evan Martin [Sun, 6 May 2012 21:00:09 +0000 (14:00 -0700)]
Merge pull request #298 from tfarina/build-log-string

No need to convert log_path to c-string. Two places.

12 years agoNo need to convert log_path to c-string. Two places.
Thiago Farina [Sun, 6 May 2012 20:37:46 +0000 (17:37 -0300)]
No need to convert log_path to c-string. Two places.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
12 years agoProduce colored diagnostics when building ninja with clang.
Nico Weber [Fri, 4 May 2012 15:44:30 +0000 (08:44 -0700)]
Produce colored diagnostics when building ninja with clang.

This can be disabled by having -fno-color-diagnostics in CFLAGS,
or setting TERM to dumb.

12 years agomention reactos
Evan Martin [Fri, 4 May 2012 23:07:37 +0000 (16:07 -0700)]
mention reactos

12 years agomention platform support
Evan Martin [Fri, 4 May 2012 23:04:59 +0000 (16:04 -0700)]
mention platform support

12 years agoMerge pull request #296 from nico/confenv
Evan Martin [Fri, 4 May 2012 21:50:16 +0000 (14:50 -0700)]
Merge pull request #296 from nico/confenv

Let configure.py remember its environment for rerunning.

12 years agoMerge pull request #294 from nico/fastercanonpath
Evan Martin [Fri, 4 May 2012 21:46:05 +0000 (14:46 -0700)]
Merge pull request #294 from nico/fastercanonpath

Make CanonicalizePath() 47% faster on mac, 37% faster on linux.

12 years agoFirst check for string end, then dereference. (5ms more expensive, heh.)
Nico Weber [Fri, 4 May 2012 21:25:32 +0000 (14:25 -0700)]
First check for string end, then dereference. (5ms more expensive, heh.)

12 years agoDo not access os.environ directly.
Nico Weber [Fri, 4 May 2012 21:20:33 +0000 (14:20 -0700)]
Do not access os.environ directly.

12 years agoLet configure.py remember its environment for rerunning.
Nico Weber [Fri, 4 May 2012 15:33:46 +0000 (08:33 -0700)]
Let configure.py remember its environment for rerunning.

Without this, CXX is lost when ninja decides that it's time to
regenerate build.ninja, which makes performance tweaking surprising.

12 years agoDon't walk path components twice. Speeds up CanonicalizePath() 115ms (285ms -> 170ms).
Nico Weber [Fri, 4 May 2012 01:18:03 +0000 (18:18 -0700)]
Don't walk path components twice. Speeds up CanonicalizePath() 115ms (285ms -> 170ms).

12 years agoReorder a few lines, no functionality (or perf) change.
Nico Weber [Fri, 4 May 2012 01:15:15 +0000 (18:15 -0700)]
Reorder a few lines, no functionality (or perf) change.

12 years agoSkip single '/' characters earlier in the loop. 300ms -> 285ms.
Nico Weber [Fri, 4 May 2012 01:14:34 +0000 (18:14 -0700)]
Skip single '/' characters earlier in the loop. 300ms -> 285ms.

12 years agoSpeed up CanonicalizePath() 6.8% (322ms -> 300ms for chrome empty build).
Nico Weber [Thu, 3 May 2012 23:13:40 +0000 (16:13 -0700)]
Speed up CanonicalizePath() 6.8% (322ms -> 300ms for chrome empty build).

12 years agoclarify a flag in configure.py
Evan Martin [Wed, 2 May 2012 03:46:34 +0000 (20:46 -0700)]
clarify a flag in configure.py

(The -g flag is always on, --debug just adds e.g. libstdc++'s extra
debugging features.)

Related to issue #286.

12 years agoadd $: to docs
Evan Martin [Fri, 27 Apr 2012 20:16:14 +0000 (13:16 -0700)]
add $: to docs

12 years agoMerge pull request #291 from nico/ocd
Evan Martin [Wed, 2 May 2012 03:34:21 +0000 (20:34 -0700)]
Merge pull request #291 from nico/ocd

Fix layout width in ninja_syntax.py.

12 years agoMerge pull request #290 from nico/metrics
Evan Martin [Wed, 2 May 2012 03:33:41 +0000 (20:33 -0700)]
Merge pull request #290 from nico/metrics

Add .ninja_log load time to metrics.

12 years agoMerge pull request #284 from nico/fixwinbuild
Evan Martin [Wed, 2 May 2012 03:30:17 +0000 (20:30 -0700)]
Merge pull request #284 from nico/fixwinbuild

Fix Windows build.

12 years agoMerge pull request #283 from tfarina/string-ampersand
Evan Martin [Wed, 2 May 2012 03:29:57 +0000 (20:29 -0700)]
Merge pull request #283 from tfarina/string-ampersand

Put & operator with the type rather than the variable name.

12 years agoFix layout width in ninja_syntax.py.
Nico Weber [Wed, 2 May 2012 01:26:51 +0000 (18:26 -0700)]
Fix layout width in ninja_syntax.py.

The last line would sometimes be needlessly longer than the layout
width. One example is line 67 in the build.ninja generated by
ninja's own configure.py: Before this patch, ninja_syntax would
create a 81 character line.

12 years agoAdd .ninja_log load time to metrics.
Nico Weber [Tue, 1 May 2012 15:42:35 +0000 (08:42 -0700)]
Add .ninja_log load time to metrics.

On my system, it takes 22% of the empty build time for chrome.

12 years agoMerge pull request #288 from nico/buildfix
Evan Martin [Tue, 1 May 2012 05:35:58 +0000 (22:35 -0700)]
Merge pull request #288 from nico/buildfix

ninja_syntax.build() returns a list, not a single string.

12 years agoninja_syntax.build() returns a list, not a single string.
Nico Weber [Tue, 1 May 2012 03:15:30 +0000 (20:15 -0700)]
ninja_syntax.build() returns a list, not a single string.

Fixes 'multiple rules' warnings on mac/linux.

12 years agoMerge pull request #285 from nico/winninjatest
Evan Martin [Mon, 30 Apr 2012 16:22:19 +0000 (09:22 -0700)]
Merge pull request #285 from nico/winninjatest

Make it possible to write `ninja ninja_test` on windows (as opposed to `ninja ninja_test.exe`). Also `ninja ninja`.

12 years agoMerge pull request #287 from nico/gtestnortti
Evan Martin [Mon, 30 Apr 2012 16:21:32 +0000 (09:21 -0700)]
Merge pull request #287 from nico/gtestnortti

Fix ninja_test build with clang, build without rtti on windows.

12 years agoExplicitly pass -DGTEST_HAS_RTTI to fix building ninja_test with clang.
Nico Weber [Mon, 30 Apr 2012 15:40:34 +0000 (08:40 -0700)]
Explicitly pass -DGTEST_HAS_RTTI to fix building ninja_test with clang.

12 years agoBuild without RTTI on windows (/GR-), saves 1kB and is consisten with linux/mac.
Nico Weber [Mon, 30 Apr 2012 15:40:12 +0000 (08:40 -0700)]
Build without RTTI on windows (/GR-), saves 1kB and is consisten with linux/mac.

12 years agoProvide 'ninja' as alias for 'ninja.exe' too. Tidy up.
Nico Weber [Mon, 30 Apr 2012 15:11:21 +0000 (08:11 -0700)]
Provide 'ninja' as alias for 'ninja.exe' too. Tidy up.

12 years agoProvide 'ninja_test' as alias for 'ninja_test.exe' on windows.
Nico Weber [Mon, 30 Apr 2012 15:06:28 +0000 (08:06 -0700)]
Provide 'ninja_test' as alias for 'ninja_test.exe' on windows.

12 years agoFix Windows build.
Nico Weber [Mon, 30 Apr 2012 15:04:10 +0000 (08:04 -0700)]
Fix Windows build.

12 years agoPut & operator with the type rather than the variable name.
Thiago Farina [Sat, 28 Apr 2012 18:21:37 +0000 (15:21 -0300)]
Put & operator with the type rather than the variable name.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
12 years agoMerge pull request #274 from polrop/max_load_average
Evan Martin [Sat, 28 Apr 2012 17:56:38 +0000 (10:56 -0700)]
Merge pull request #274 from polrop/max_load_average

Max load average

12 years agoemacs: hook up ninja-mode to extension
Evan Martin [Sat, 28 Apr 2012 16:06:28 +0000 (09:06 -0700)]
emacs: hook up ninja-mode to extension

12 years agoMerge pull request #282 from iwadon/fix-link-to-gplus
Evan Martin [Sat, 28 Apr 2012 05:59:39 +0000 (22:59 -0700)]
Merge pull request #282 from iwadon/fix-link-to-gplus

Fix a link to Google+

12 years agoFix a link to Google+.
Hiroyuki Iwatsuki [Sat, 28 Apr 2012 01:57:06 +0000 (10:57 +0900)]
Fix a link to Google+.

12 years agorearrange the manual
Evan Martin [Fri, 27 Apr 2012 15:14:28 +0000 (08:14 -0700)]
rearrange the manual

My goals were:
- shorten the introductory text, hopefully quickly answering the "why?"
  question first.
- put the information relevant to ninja users (e.g. people using CMake
  who don't especially care about ninja) next, at the beginning.
- consolidate the "generating ninja files" text below.

12 years agomanual: limit width to 45em
Evan Martin [Fri, 27 Apr 2012 15:19:35 +0000 (08:19 -0700)]
manual: limit width to 45em

I had a local user stylesheet that was doing this for all sites
so I hadn't noticed how bad it was!

12 years agosuggest ninja -h when someone runs 'ninja help'
Evan Martin [Thu, 26 Apr 2012 15:02:15 +0000 (08:02 -0700)]
suggest ninja -h when someone runs 'ninja help'

12 years agodoc encoding support
Evan Martin [Thu, 26 Apr 2012 04:55:32 +0000 (21:55 -0700)]
doc encoding support

12 years agoallow UTF-8 in rule descriptions
Evan Martin [Thu, 26 Apr 2012 04:52:07 +0000 (21:52 -0700)]
allow UTF-8 in rule descriptions

The lexer already mostly allowed this, except that chars >127 were
being interpreted as negative indexes into the lexer table.

12 years agoMerge pull request #278 from tychoish/master
Evan Martin [Thu, 26 Apr 2012 04:22:21 +0000 (21:22 -0700)]
Merge pull request #278 from tychoish/master

Minor Documentation Tweak

12 years agoreduce custom ninja status patch in minor ways
Evan Martin [Thu, 26 Apr 2012 03:30:35 +0000 (20:30 -0700)]
reduce custom ninja status patch in minor ways

Elsewhere in the code I avoid sstream and manual buffer management,
so switch this code to behave similarly.  Sorry for being OCD.

12 years agoMerge branch 'custom_ninja_status' of git://github.com/polrop/ninja
Evan Martin [Thu, 26 Apr 2012 03:23:26 +0000 (20:23 -0700)]
Merge branch 'custom_ninja_status' of git://github.com/polrop/ninja

12 years agoMerge pull request #272 from nico/statstweak
Evan Martin [Thu, 26 Apr 2012 03:21:26 +0000 (20:21 -0700)]
Merge pull request #272 from nico/statstweak

Switch the order of total and avg columns in -d stats output.

12 years agoMerge pull request #269 from sgraham/explain
Evan Martin [Thu, 26 Apr 2012 03:18:42 +0000 (20:18 -0700)]
Merge pull request #269 from sgraham/explain

add support for -d explain to help debug why rules are running

12 years agoMerge pull request #228 from pcc/lazily-create-commandrunner
Evan Martin [Thu, 26 Apr 2012 03:15:19 +0000 (20:15 -0700)]
Merge pull request #228 from pcc/lazily-create-commandrunner

Lazily create the CommandRunner in Builder::Build

12 years agoMerge branch 'dont-clean-phony' of git://github.com/pcc/ninja
Evan Martin [Thu, 26 Apr 2012 03:13:10 +0000 (20:13 -0700)]
Merge branch 'dont-clean-phony' of git://github.com/pcc/ninja

Conflicts:
src/clean.cc

12 years agoMerge pull request #207 from iwadon/fix-configure.py-windows
Evan Martin [Thu, 26 Apr 2012 03:06:59 +0000 (20:06 -0700)]
Merge pull request #207 from iwadon/fix-configure.py-windows

Fix configure.py for unpacked gtest on Windows platform.

12 years agoRefactor and test progress status formatting.
Nicolas Despres [Tue, 24 Apr 2012 09:09:28 +0000 (11:09 +0200)]
Refactor and test progress status formatting.

12 years agoIntroduce NINJA_STATUS env var for customization.
Nicolas Despres [Thu, 19 Apr 2012 12:26:33 +0000 (14:26 +0200)]
Introduce NINJA_STATUS env var for customization.

Some people may want to display different relevant information about
the progress of the build.  Also it can be usefull to debug jobs
allocation.

12 years agoRemove trailing white spaces.
Nicolas Despres [Thu, 19 Apr 2012 13:13:50 +0000 (15:13 +0200)]
Remove trailing white spaces.

12 years agodocs: clarifying that there can be only one command per rule
tycho garen [Tue, 24 Apr 2012 02:26:35 +0000 (22:26 -0400)]
docs: clarifying that there can be only one command per rule

12 years agoAdd -l N option to limit the load average.
Nicolas Despres [Thu, 5 Apr 2012 13:44:36 +0000 (15:44 +0200)]
Add -l N option to limit the load average.

This is similar to GNU make -l/--load-average option.  It limits the number
of job started if the load average exceed the given value.  It can be very
useful when running ninja on a continuous integration server where we want
to use parallelism as much as possible without overloading the server.

12 years agoRemove trailing white spaces.
Nicolas Despres [Thu, 19 Apr 2012 13:26:28 +0000 (15:26 +0200)]
Remove trailing white spaces.

12 years agoSwitch the order of total and avg columns in -d stats output.
Nico Weber [Tue, 17 Apr 2012 17:07:06 +0000 (10:07 -0700)]
Switch the order of total and avg columns in -d stats output.

12 years agoadd support for -d explain to help debug why rules are running
Scott Graham [Fri, 13 Apr 2012 23:55:37 +0000 (16:55 -0700)]
add support for -d explain to help debug why rules are running

12 years agoMerge pull request #252 from qhuo/remove-depfile-when-cleaning
Evan Martin [Wed, 11 Apr 2012 00:07:42 +0000 (17:07 -0700)]
Merge pull request #252 from qhuo/remove-depfile-when-cleaning

Remove depfiles when running "ninja -t clean <target>" or "ninja -t clean -r <rule>"

12 years agoMerge pull request #265 from mathstuf/dev/verbose-bootstrap
Evan Martin [Tue, 10 Apr 2012 23:25:02 +0000 (16:25 -0700)]
Merge pull request #265 from mathstuf/dev/verbose-bootstrap

Allow the bootstrap to be verbose

12 years agoMerge pull request #253 from qhuo/include-io.h
Evan Martin [Tue, 10 Apr 2012 23:23:45 +0000 (16:23 -0700)]
Merge pull request #253 from qhuo/include-io.h

Fix windows build (add #include <io.h>)

12 years agoMake |log_| variable private to BuildLog.
Evan Martin [Thu, 5 Apr 2012 00:26:50 +0000 (17:26 -0700)]
Make |log_| variable private to BuildLog.

This fix the TODO in build_log.h file.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
12 years agoMerge pull request #263 from mathstuf/dev/gcc-470-build-fixes
Evan Martin [Thu, 5 Apr 2012 00:23:07 +0000 (17:23 -0700)]
Merge pull request #263 from mathstuf/dev/gcc-470-build-fixes

Include unistd.h where needed

12 years agoMerge pull request #260 from sgraham/rspfile_syntax
Evan Martin [Thu, 5 Apr 2012 00:21:08 +0000 (17:21 -0700)]
Merge pull request #260 from sgraham/rspfile_syntax

add rspfile and rspfile_content to ninja_syntax

12 years agoMerge pull request #259 from usovalx/distcc_depfile_fix
Evan Martin [Thu, 5 Apr 2012 00:14:30 +0000 (17:14 -0700)]
Merge pull request #259 from usovalx/distcc_depfile_fix

Explicitly specify target name for gcc depfiles

12 years agoMerge pull request #256 from iwadon/fix-sign-compare
Evan Martin [Thu, 5 Apr 2012 00:13:33 +0000 (17:13 -0700)]
Merge pull request #256 from iwadon/fix-sign-compare

fix warning: "comparison between signed and unsigned integer expressions"

12 years agoMerge pull request #257 from PetrWolf/53598255
Evan Martin [Thu, 5 Apr 2012 00:13:19 +0000 (17:13 -0700)]
Merge pull request #257 from PetrWolf/53598255

Add NOMINMAX macro to fix a compilation error on Win32

12 years agoAllow the bootstrap to be verbose
Ben Boeckel [Fri, 30 Mar 2012 23:28:37 +0000 (19:28 -0400)]
Allow the bootstrap to be verbose

12 years agoInclude unistd.h where needed
Ben Boeckel [Wed, 28 Mar 2012 23:18:09 +0000 (19:18 -0400)]
Include unistd.h where needed

12 years agoadd rspfile and rspfile_content to ninja_syntax
Scott Graham [Tue, 27 Mar 2012 00:36:43 +0000 (17:36 -0700)]
add rspfile and rspfile_content to ninja_syntax

12 years agoExplicitly specify target name for gcc depfiles
Oleksandr Usov [Fri, 23 Mar 2012 15:40:04 +0000 (15:40 +0000)]
Explicitly specify target name for gcc depfiles

12 years agoMerge pull request #251 from polrop/depfile-parser-accept-tilde
Evan Martin [Sun, 18 Mar 2012 23:49:31 +0000 (16:49 -0700)]
Merge pull request #251 from polrop/depfile-parser-accept-tilde

Depfile parser accept tilde.

12 years agofix warning: "comparison between signed and unsigned integer expressions"
Hiroyuki Iwatsuki [Fri, 16 Mar 2012 13:41:39 +0000 (22:41 +0900)]
fix warning: "comparison between signed and unsigned integer expressions"

12 years agoAdd NOMINMAX macro to fix a compilation error on Win32
Petr Wolf [Fri, 16 Mar 2012 12:59:28 +0000 (13:59 +0100)]
Add NOMINMAX macro to fix a compilation error on Win32

12 years agoFix windows build (add #include <io.h>)
Qingning Huo [Thu, 15 Mar 2012 21:48:29 +0000 (21:48 +0000)]
Fix windows build (add #include <io.h>)

12 years agoRemove depfiles when running when running "ninja -t clean <target>"
Qingning Huo [Wed, 14 Mar 2012 21:11:31 +0000 (21:11 +0000)]
Remove depfiles when running when running "ninja -t clean <target>"
or "ninja -t clean -r <rule>"

12 years agoDepfile parser accept tilde.
Nicolas Despres [Wed, 14 Mar 2012 19:33:32 +0000 (20:33 +0100)]
Depfile parser accept tilde.

12 years agoMerge pull request #250 from qhuo/SetCloseOnExec-for-Windows
Evan Martin [Tue, 13 Mar 2012 23:37:53 +0000 (16:37 -0700)]
Merge pull request #250 from qhuo/SetCloseOnExec-for-Windows

Add a Windows version of SetCloseOnExec()

12 years agoMerge pull request #249 from qhuo/StatBadPath-Win7
Evan Martin [Tue, 13 Mar 2012 23:31:39 +0000 (16:31 -0700)]
Merge pull request #249 from qhuo/StatBadPath-Win7

Fix StatBadPath for Windows 7

12 years agoAdd a Windows version of SetCloseOnExec()
Qingning Huo [Tue, 13 Mar 2012 23:28:44 +0000 (23:28 +0000)]
Add a Windows version of SetCloseOnExec()

12 years agoFix StatBadPath for Windows 7
Qingning Huo [Tue, 13 Mar 2012 23:20:12 +0000 (23:20 +0000)]
Fix StatBadPath for Windows 7

The StatBadPath test expects both Windows and Linux to reject a
path name with 512 characters. However, it seems that such path
is actually acceptable to Windows 7. The change constructs a
different path name that is invalid on Windows.

12 years agoMerge pull request #246 from HeisSpiter/master
Evan Martin [Tue, 13 Mar 2012 22:12:57 +0000 (15:12 -0700)]
Merge pull request #246 from HeisSpiter/master

Fix resources leaks

12 years agoFix resources leaks
Pierre Schweitzer [Tue, 13 Mar 2012 10:25:42 +0000 (11:25 +0100)]
Fix resources leaks

12 years agoMerge pull request #245 from usovalx/unify_depfile_targets
Evan Martin [Tue, 13 Mar 2012 06:28:18 +0000 (23:28 -0700)]
Merge pull request #245 from usovalx/unify_depfile_targets

Issue #241 - handle depfiles generated by older versions of GCC

12 years agoIssue #241 - handle depfiles generated by older versions of GCC
Oleksandr Usov [Mon, 12 Mar 2012 19:14:07 +0000 (19:14 +0000)]
Issue #241 - handle depfiles generated by older versions of GCC

Older versions of GCC would produce broken depfiles when -MT or -MQ is used
    gcc43 -MT foo.o -MMD -MF foo.o.d -o foo.o -c foo.c
will result in the following depfile
    foo.o foo.o: <dependencies>

Parse multiple outputs unifying duplicates and correctly report errors if
they are different.

12 years agoMerge pull request #235 from fischman/ppoll
Evan Martin [Thu, 8 Mar 2012 07:04:02 +0000 (23:04 -0800)]
Merge pull request #235 from fischman/ppoll

pselect->ppoll on linux to raise the process limit roof