Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix build on Solaris. | alekseyshl | 2018-03-05 | 1 | -1/+2 |
| | | | | Solaris also does not define struct stat's st_mtimensec field. | ||||
* | Fix some Windows troubles. | Elliott Sales de Andrade | 2017-09-16 | 1 | -1/+1 |
| | | | | | Add parentheses so that constant does not overflow; include inttypes.h when using MinGW to get the proper macros. | ||||
* | Update checks for new stat fields. | Elliott Sales de Andrade | 2017-09-16 | 1 | -4/+6 |
| | | | | | This uses the macros as defined by the man page, which, as noted in the comments, are defined correctly on as many libc's that I could check. | ||||
* | Read file timestamps in higher resolution. | Elliott Sales de Andrade | 2017-09-16 | 1 | -5/+14 |
| | | | | | | | | This uses nanoseconds on POSIX (±~292 years) and 100-ns increments on Windows (±~29247 years). The fallbacks to different structure fields is the only thing grabbed from #337, with a slight modification in implementation. | ||||
* | Work around mtime being set to 0 sometimes | Patrick Griffis | 2017-06-18 | 1 | -0/+5 |
| | |||||
* | Move stat metric to DiskInterface | Colin Cross | 2017-05-22 | 1 | -0/+2 |
| | | | | | | | Stat is not always used through Node::Stat, it is often used directly through DiskInterface. THe next patches will cause it to be called even more often through DiskInterface, so move the metrics to DiskInterface. | ||||
* | windows: replace deprecated GetVersionEx with recommended replacement | Nico Weber | 2016-11-08 | 1 | -12/+7 |
| | | | | | | | | The recommended replacement VerifyVersionInfo should work with the same SDKs that GetVersionEx worked with (while the wrappers in VersionHelpers.h require a recent SDK). This patch should not change behavior, and it's not supposed to increase build requirements. If this makes things harder to build, please let me know. | ||||
* | Expose more details in FileReader::ReadFile signature | Brad King | 2016-02-03 | 1 | -7/+7 |
| | | | | | | Return a status so callers can distinguish a missing file from an empty file. This allows our VirtualFileSystem test infrastructure to report as missing any file for which it has no entry. | ||||
* | Let Stat() have an err outparam instead of writing to stderr. | Nico Weber | 2015-03-31 | 1 | -27/+23 |
| | | | | | | | | | Also check for Stat() failure in a few more places. This way, ninja doesn't print two "ninja: error: " lines if stat() fails during a build. It also makes it easier to keep the stat tests quiet. Every caller of Stat() needs to explicitly log the error string if that's desired. | ||||
* | Fix unknown pragma warnings | Danny | 2014-09-28 | 1 | -0/+4 |
| | |||||
* | add some parens to silence a gcc warning | Evan Martin | 2014-08-04 | 1 | -1/+1 |
| | |||||
* | try to fix stat()ing directories on windows | Nico Weber | 2014-06-27 | 1 | -2/+0 |
| | |||||
* | make Stat() a const method | Nico Weber | 2014-06-19 | 1 | -1/+1 |
| | |||||
* | use local definition of FindExInfoBasic for earlier sdks | Scott Graham | 2014-06-19 | 1 | -1/+4 |
| | |||||
* | suppress warning on win8.1 sdk | Scott Graham | 2014-06-16 | 1 | -0/+3 |
| | |||||
* | simplify statcache code more | Nico Weber | 2014-06-16 | 1 | -15/+6 |
| | |||||
* | only use FindExInfoBasic on win7+ | Nico Weber | 2014-06-16 | 1 | -2/+13 |
| | |||||
* | s/hFind/find_handle/ | Nico Weber | 2014-06-15 | 1 | -5/+5 |
| | |||||
* | add missing _WIN32 checks | Nico Weber | 2014-06-15 | 1 | -0/+2 |
| | |||||
* | add some statcache tests | Nico Weber | 2014-06-15 | 1 | -5/+11 |
| | |||||
* | Free cache memory once it's no longer used. | Nico Weber | 2014-06-15 | 1 | -0/+16 |
| | | | | | Doesn't slow down empty build times measurably, and saves some memory on non-empty builds. | ||||
* | error checking | Nico Weber | 2014-06-15 | 1 | -8/+11 |
| | |||||
* | simplify more, move behind flag | Nico Weber | 2014-06-15 | 1 | -3/+1 |
| | |||||
* | more minor cleanups | Nico Weber | 2014-06-15 | 1 | -10/+6 |
| | |||||
* | more minor cleanups | Nico Weber | 2014-06-15 | 1 | -20/+7 |
| | |||||
* | minor cleanups | Nico Weber | 2014-06-15 | 1 | -56/+40 |
| | |||||
* | Add a stat cache. Demo-quality, and disabled atm. | Nico Weber | 2014-06-15 | 1 | -19/+100 |
| | |||||
* | Merge pull request #699 from mostynb/avoid_useless_mkdir_failure | Nico Weber | 2014-04-07 | 1 | -0/+3 |
|\ | | | | | don't Fail if trying to mkdir when the dir already exists | ||||
| * | don't Fail if trying to mkdir when the dir already exists | Mostyn Bramley-Moore | 2014-01-07 | 1 | -0/+3 |
| | | |||||
* | | Support both slashes on Windows when making output dirs | Scott Graham | 2014-04-03 | 1 | -5/+8 |
|/ | |||||
* | Minor style fixes, no behavior change. | Nico Weber | 2013-08-23 | 1 | -1/+1 |
| | |||||
* | make DiskInterfaceTest.StatBadPath quiet | Evan Martin | 2013-04-19 | 1 | -5/+11 |
| | | | | | | Add a flag to temporarily suppress error output. Fixes issue #281. | ||||
* | wrap some overlong lines | Evan Martin | 2012-12-29 | 1 | -4/+8 |
| | |||||
* | use DiskInterface to create the build directory | Evan Martin | 2012-08-07 | 1 | -0/+10 |
| | | | | | | | | | | 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. | ||||
* | Put & operator with the type rather than the variable name. | Thiago Farina | 2012-04-28 | 1 | -1/+1 |
| | | | | Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | Fix resources leaks | Pierre Schweitzer | 2012-03-13 | 1 | -1/+2 |
| | |||||
* | Treat paths of the form "existing-file/something" as non-existent | Peter Collingbourne | 2012-03-07 | 1 | -1/+1 |
| | | | | | | | | Some people like to construct phony target names by appending a "/something" suffix to an existing target "foo". But if "foo" is an existing file, stat will report ENOTDIR for this path, causing ninja to spew errors. Fix this by treating ENOTDIR in the same way as we do ENOENT -- as a non-existent path. | ||||
* | Response files | unknown | 2012-02-09 | 1 | -0/+20 |
| | |||||
* | fix search&replace error on struct name | Peter Kuemmel | 2012-01-23 | 1 | -1/+1 |
| | |||||
* | no error code about too long file names on Windows | Peter Kuemmel | 2012-01-23 | 1 | -0/+6 |
| | |||||
* | windows: use _WIN32 define everywhere | Evan Martin | 2012-01-22 | 1 | -4/+4 |
| | | | | Rather than mixing use of WIN32 and _WIN32. | ||||
* | drop some std:: prefixes | Evan Martin | 2012-01-05 | 1 | -12/+11 |
| | |||||
* | convert all time_t to a new TimeStamp type | Evan Martin | 2012-01-05 | 1 | -3/+3 |
| | |||||
* | windows: make bootstrap.py/configure.py work with MSVC | Scott Graham | 2012-01-04 | 1 | -1/+1 |
| | |||||
* | windows: handle ERROR_PATH_NOT_FOUND | Evan Martin | 2011-12-23 | 1 | -1/+2 |
| | | | | From Frances <frances.buontempo@gmail.com>. | ||||
* | windows: use GetFileAttributesEx instead of stat | Evan Martin | 2011-12-20 | 1 | -6/+27 |
| | | | | | | | | | From a Hacker News comment: "Recent finding, that sped up our systems from 15->3sec on 300,000+ files filestamp check was to move from _stat to GetFileAttributesEx." I do recall reading that calls to stat() on Windows were one of the potential reasons Subversion is so slow on Windows... | ||||
* | remove weird accidental double-return | Evan Martin | 2011-12-20 | 1 | -1/+0 |
| | | | | Surprised this isn't a compiler warning. | ||||
* | Move RealDiskInterface class to disk_interface.h. | Thiago Farina | 2011-08-25 | 1 | -0/+59 |
| | | | | | | This is a TODO in src/ninja_jumble.cc Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | Factor out DiskInterface class into its own source/header files. | Thiago Farina | 2011-08-10 | 1 | -0/+51 |
This is a TODO in src/ninja_jumble.cc Signed-off-by: Thiago Farina <tfarina@chromium.org> |