Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #835 from rainlabs-eu/fix-cygwin-compatibility | Nico Weber | 2014-12-04 | 1 | -1/+4 |
|\ | | | | | Fixed cygwin compatibility (issue #806) | ||||
| * | Fixed cygwin compatibility (issue #806) | kwesolowski | 2014-10-25 | 1 | -1/+4 |
| | | | | | | | | Fixed platform specific issues causing cygwin build to fail. | ||||
* | | Merge pull request #850 from sgraham/ocd | Nico Weber | 2014-11-12 | 1 | -16/+19 |
|\ \ | | | | | | | whitespace/comment/wrap fixes, no intended functionality change | ||||
| * | | whitespace/comment/wrap fixes, no intended functionality change | Scott Graham | 2014-11-12 | 1 | -16/+19 |
| | | | |||||
* | | | set *err when too many components in CanonicalizePath | Scott Graham | 2014-11-12 | 1 | -1/+3 |
|/ / | |||||
* | | properly guard against slash_bits overflow | Scott Graham | 2014-11-12 | 1 | -2/+5 |
| | | |||||
* | | fix not respecting length | Scott Graham | 2014-11-11 | 1 | -14/+18 |
| | | |||||
* | | fix CanonicalizePath going past StringPiece length + test | Scott Graham | 2014-11-10 | 1 | -0/+2 |
| | | |||||
* | | initialize slash_bits on non-win | Scott Graham | 2014-11-10 | 1 | -0/+2 |
| | | |||||
* | | non-win compilation | Scott Graham | 2014-11-09 | 1 | -0/+10 |
| | | |||||
* | | fix order of args to CanonicalizePath | Scott Graham | 2014-11-09 | 1 | -4/+4 |
| | | |||||
* | | remove CanonicalizePath overloads, test for toplevel behaviour | Scott Graham | 2014-11-09 | 1 | -10/+0 |
| | | |||||
* | | fix multiple sequential slashes | Scott Graham | 2014-11-08 | 1 | -1/+1 |
| | | |||||
* | | track back->forward conversions in a bitmask | Scott Graham | 2014-11-08 | 1 | -6/+46 |
| | | |||||
* | | Use strchr in \ conversion in CanonicalizePath on Windows | Scott Graham | 2014-10-30 | 1 | -3/+2 |
| | | |||||
* | | CanonicalizePath handles \ on Windows | Scott Graham | 2014-10-30 | 1 | -1/+39 |
|/ | |||||
* | Changed implementation to provide load from 0 to ProcessorCount | kwesolowski | 2014-07-26 | 1 | -4/+6 |
| | | | | This makes this implementation more consisten with POSIX load avarage. | ||||
* | Fixed naming convention in GetLoadAverage support functions. | kwesolowski | 2014-07-26 | 1 | -25/+25 |
| | |||||
* | Improved load calculation | kwesolowski | 2014-07-25 | 1 | -9/+20 |
| | | | | | | | Added code to gracefully handle: 1. Call to CalculateProcessorLoad with not incremented ticks (fast calls to GetSystemTimes can result same results), 2. Smooth/filter load estimation for consecutive calls. | ||||
* | Fixes for windows CalculateProcessorLoad | kwesolowski | 2014-07-25 | 1 | -1/+4 |
| | | | | | - Fixed bad logic condition, - Added comment to clarify | ||||
* | Prepared load (-l N) support for windows. | kwesolowski | 2014-07-25 | 1 | -3/+44 |
| | | | | | Inspired by: http://stackoverflow.com/questions/23143693/retrieving-cpu-load-percent-total-in-windows-with-c | ||||
* | Allow + in filenames without escaping | Nico Weber | 2014-05-30 | 1 | -0/+1 |
| | | | | | | Due to #690, file.c++ used to be escaped. + seems as safe as -, so allow it to not be escaped, to keep compile command lines with a fairly common extension slightly cleaner. | ||||
* | Don’t unnecessarily escape backslashes in Win32 paths | Nicholas Hutchinson | 2014-01-08 | 1 | -1/+0 |
| | | | | Under ::CommandLineToArgvW() rules, the backslash character only gets special treatment if it’s immediately followed by a double quote. So, when checking to see if a string needs Win32 escaping, it’s sufficient to check for the presence of a double quote character. This allows paths like "foo\bar" to be recognised as “sensible” paths, which don’t require the full escaping. | ||||
* | More robust escaping of $in, $out paths | Nicholas Hutchinson | 2014-01-06 | 1 | -0/+104 |
| | | | | | | In summary: don’t escape if the path doesn’t contain problematic characters, otherwise: - Shell: enclose string in single quotes, escape embedded single quotes with the magic quote-backslash-quote sequence - Win32: Escape double quotes by doubling the number of consecutive backslashes that precede them (if any) and adding one more. Finally, double the number of trailing backslashes, and enclose the whole thing in double quotes. | ||||
* | Simplify implementation of GetProcessorCount(). | Benedikt Meurer | 2013-09-01 | 1 | -22/+2 |
| | | | | | | | | | The current implementation is unnecessarily complex, because: - The BSD derived systems implement sysconf(_SC_NPROCESSORS_ONLN) in terms of sysctl({CTL_HW,HW_NCPU}). - get_nprocs() is a GNU extension, and glibc implements sysconf(_SC_NPROCESSORS_ONLN) in terms of get_nprocs(). | ||||
* | Don't use va_start() with reference parameters, it's undefined behavior. | Nico Weber | 2013-05-24 | 1 | -1/+4 |
| | | | | Should fix issue #584. | ||||
* | minor formatting change | Nico Weber | 2013-05-01 | 1 | -3/+2 |
| | |||||
* | added missing windows include | Patrick von Reth | 2013-04-30 | 1 | -0/+1 |
| | |||||
* | Fix Windows build more. | Nico Weber | 2013-04-29 | 1 | -1/+1 |
| | |||||
* | Introduce a Truncate() function that works on POSIX and Windows. | Nico Weber | 2013-04-29 | 1 | -0/+20 |
| | | | | Hopefully fixes the build on Windows. | ||||
* | 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) |