Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.cc: Reusing windows workaround for cygwin. | Paul Kunysch | 2013-02-09 | 1 | -1/+1 |
| | | | | | | This fixes: src/util.cc: In function 'double GetLoadAverage()': src/util.cc:337:28: error: 'getloadavg' was not declared in this scope | ||||
* | fix build on non-Linux glibc systems | Pino Toscano | 2012-12-29 | 1 | -2/+2 |
| | | | | | | | | | | | | ninja-build does not build on non-Linux archs, such as GNU/kFreeBSD and GNU/Hurd. The problem is that the GetProcessorCount() implementation for these architectures is the sysconf() one, but <unistd.h> has not been included, causing sysconf() and _SC_NPROCESSORS_ONLN to not be declared. Another solution (which is the one I chose) is to make use of the "linux" implementation which uses get_nprocs(), which is a GNU extension and thus available for anything using GNU libc. | ||||
* | Improved error message with more information | Richard Geary | 2012-11-09 | 1 | -1/+1 |
| | | | | Change-Id: Idb1ce67a320a9819de262d83b498ee10eb362ed2 | ||||
* | add GetProcessorCount() implementation for Solaris | Alex Caudill | 2012-09-07 | 1 | -0/+9 |
| | |||||
* | Merge pull request #401 from syntheticpp/win-network-path | Evan Martin | 2012-08-17 | 1 | -0/+11 |
|\ | | | | | on windows a network path starts with two backslashes | ||||
| * | on windows a network path starts with two backslashes | Peter Kuemmel | 2012-08-17 | 1 | -0/+11 |
| | | |||||
* | | move Win32Fatal into util | Evan Martin | 2012-08-12 | 1 | -0/+4 |
| | | |||||
* | | windows: fix size_t<->int conversions in ninja.exe | Evan Martin | 2012-08-10 | 1 | -3/+3 |
|/ | |||||
* | use DiskInterface to create the build directory | Evan Martin | 2012-08-07 | 1 | -12/+0 |
| | | | | | | | | | | Fixes issue #392 (didn't handle creating nested build dirs right). Moves MakeDir out of util.h; all code should go through DiskInterface to simplify testing. Moves ownership of the DiskInterface into the client of the Builder, which also allows removing some code that reached inside the object as well as a minor leak. | ||||
* | Merge branch 'factor-elide-middle' of git://github.com/polrop/ninja | Evan Martin | 2012-08-01 | 1 | -0/+12 |
|\ | | | | | | | | | Conflicts: src/util.cc | ||||
| * | Re-factor elide code and test it. | Nicolas Despres | 2012-07-31 | 1 | -0/+13 |
| | | |||||
* | | move processor-count code to util.cc | Evan Martin | 2012-07-28 | 1 | -0/+30 |
| | | |||||
* | | note that -l doesn't work on windows | Evan Martin | 2012-07-28 | 1 | -0/+1 |
| | | | | | | | | Filed issue #386 about it too. | ||||
* | | simplify load-average code | Evan Martin | 2012-07-28 | 1 | -15/+3 |
|/ | |||||
* | rearrange minidump patch to match ninja code style | Evan Martin | 2012-07-27 | 1 | -79/+0 |
| | |||||
* | Merge branch 'set_terminate' of git://github.com/gmoudry/ninja into minidump | Evan Martin | 2012-07-27 | 1 | -0/+79 |
|\ | | | | | | | | | | | | | (This likely doesn't compile, just getting all the history in place.) Conflicts: src/util.cc | ||||
| * | Changed #ifdef _WIN32 to #ifdef _MSC_VER to make sure that MinGW compiles ↵ | Jiri Moudry | 2012-04-26 | 1 | -2/+2 |
| | | | | | | | | happily | ||||
| * | Improve handling of fatal errors on Windows, support creation of minidumps | Jiri Moudry | 2012-03-28 | 1 | -0/+78 |
| | | |||||
* | | Merge pull request #351 from syntheticpp/rate | Evan Martin | 2012-07-27 | 1 | -10/+0 |
|\ \ | | | | | | | print edges per second | ||||
| * | | print edges per second | Peter Kuemmel | 2012-07-15 | 1 | -10/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prints the rate of finished edges per second to the console, for instance with NINJA_STATUS="[%s/%t %o(%c)/s] ": [132/1922 16.1(14)/s] 16.1 is the average for all processed files (here 132 since start) 14 is the average of the last n files while n is the number specifies by -j (or its default) | ||||
* | | | Use lowercase consistently. | Thiago Farina | 2012-07-20 | 1 | -3/+3 |
|/ / | | | | | | | | | | | https://github.com/martine/ninja/issues/360 Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | | First check for string end, then dereference. (5ms more expensive, heh.) | Nico Weber | 2012-05-04 | 1 | -2/+2 |
| | | |||||
* | | Don't walk path components twice. Speeds up CanonicalizePath() 115ms (285ms ↵ | Nico Weber | 2012-05-04 | 1 | -6/+2 |
| | | | | | | | | -> 170ms). | ||||
* | | Reorder a few lines, no functionality (or perf) change. | Nico Weber | 2012-05-04 | 1 | -5/+4 |
| | | |||||
* | | Skip single '/' characters earlier in the loop. 300ms -> 285ms. | Nico Weber | 2012-05-04 | 1 | -8/+11 |
| | | |||||
* | | Speed up CanonicalizePath() 6.8% (322ms -> 300ms for chrome empty build). | Nico Weber | 2012-05-04 | 1 | -8/+9 |
| | | |||||
* | | Add -l N option to limit the load average. | Nicolas Despres | 2012-04-19 | 1 | -0/+29 |
| | | | | | | | | | | | | | | 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. | ||||
* | | Fix windows build (add #include <io.h>) | Qingning Huo | 2012-03-15 | 1 | -0/+1 |
|/ | |||||
* | Add a Windows version of SetCloseOnExec() | Qingning Huo | 2012-03-13 | 1 | -3/+4 |
| | |||||
* | don't crash when CanonicalizePath removes all path components | Evan Martin | 2012-02-04 | 1 | -0/+5 |
| | | | | From a patch from Peter Kuemmel <syntheticpp@gmx.net>. | ||||
* | check access to first element of string: string could be empty | Peter Kuemmel | 2012-01-23 | 1 | -1/+4 |
| | |||||
* | windows: use _WIN32 define everywhere | Evan Martin | 2012-01-22 | 1 | -2/+2 |
| | | | | Rather than mixing use of WIN32 and _WIN32. | ||||
* | Strip ansi escape sequences from subcommand output when not writing to a ↵ | Nico Weber | 2012-01-19 | 1 | -0/+28 |
| | | | | smart terminal. | ||||
* | remove string copy while loading depfiles | Evan Martin | 2012-01-09 | 1 | -0/+1 |
| | |||||
* | split canonicalize | Evan Martin | 2012-01-09 | 1 | -5/+12 |
| | |||||
* | track canonicalize metric | Evan Martin | 2012-01-06 | 1 | -0/+2 |
| | |||||
* | allow spellcheck to be used with a vector of strings | Evan Martin | 2012-01-04 | 1 | -11/+17 |
| | |||||
* | Use ExitProcess instead of exit in Fatal to allow extra cleanup for MSVC | Frances Buontempo | 2012-01-04 | 1 | -0/+8 |
| | |||||
* | Capitalize "error" to match with the other utility functions. | Thiago Farina | 2011-12-20 | 1 | -1/+1 |
| | | | | | | | Fatal and Warning functions already output their strings capitalized, we were just missing the Error function. So capitalize it now. Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | factor out windows perror equivalent | Evan Martin | 2011-12-20 | 1 | -0/+21 |
| | |||||
* | Remove warning triggered by -Wextra on MinGW. | Nicolas Despres | 2011-11-19 | 1 | -1/+2 |
| | |||||
* | Add spelling suggestions for four cases: | Nico Weber | 2011-11-16 | 1 | -0/+25 |
| | | | | | | | | | | | 1. For targets, when invoking ninja to build a target. 2. For targets, when doing a "query" command. 3. For command names. 4. For the subcommands of the "targets" command. Also change CmdTargets() to call LookupNode() instead of GetNode() -- since the result was checked for NULL, that's probably what was intended here originally. | ||||
* | move SetCloseOnExec to util | Evan Martin | 2011-10-31 | 1 | -0/+16 |
| | |||||
* | make CanonicalizePath report an error on empty path | Evan Martin | 2011-10-06 | 1 | -1/+7 |
| | | | | Fixes part of issue 121, but the fix exposed a further issue. | ||||
* | semantic change: allow reaching into parent directories in paths | Evan Martin | 2011-08-24 | 1 | -72/+42 |
| | | | | | | | | | | | This allows generating build files in a subdirectory of your source tree. - Change CanonicalizePath to accept this. - CanonicalizePath no longer has an error condition, so change it to a void function. I profiled the result against Chrome and it might be ~100ms slower, but that might just be Chrome's size working against me. In any case I think there are lower-hanging performance fruit elsewhere. | ||||
* | remove +x bit from source | Evan Martin | 2011-06-03 | 1 | -0/+0 |
| | |||||
* | Tests now build on a native Windows build (tested with VS2010) | Philip Craig | 2011-05-28 | 1 | -0/+3 |
| | | | | | All tests except SubProcess pass on a native Windows build Tests continue not to build on a platform=mingw build | ||||
* | move GetTimeMillis to util | Evan Martin | 2011-05-24 | 1 | -0/+16 |
| | |||||
* | move ReadFile into util | Evan Martin | 2011-05-24 | 1 | -0/+23 |
| | |||||
* | don't mangle absolute paths in the canonicalizer | Evan Martin | 2011-05-17 | 1 | -1/+1 |
| | | | | | We frequently do use absolute paths when depfiles refer to e.g. /usr/include/stdio.h. |