diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-25 08:13:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-25 08:16:23 +0200 |
commit | 5ce1f438decd05e01a16445da4703c2193447428 (patch) | |
tree | 9e527a029633e52d23b0a66bd8fdfacb71908585 /libbuild2/config.hxx.in | |
parent | 5c3af4220dfccfd4c381de575620a41966aa3e4f (diff) |
Keep mtime check always enabled on Windows
Windows is known not to guarantee monotonically increasing mtimes.
Diffstat (limited to 'libbuild2/config.hxx.in')
-rw-r--r-- | libbuild2/config.hxx.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/config.hxx.in b/libbuild2/config.hxx.in index 59917db..9a2e01f 100644 --- a/libbuild2/config.hxx.in +++ b/libbuild2/config.hxx.in @@ -21,9 +21,11 @@ #define LIBBUILD2_STAGE true // Modification time sanity checks are by default only enabled for the staged -// version but this can be overridden at runtime with --[no-]mtime-check. +// version unless we are on Windows (which is known not to guarantee +// monotonically increasing mtimes). But this can be overridden at runtime +// with --[no-]mtime-check. // -#if LIBBUILD2_STAGE +#if LIBBUILD2_STAGE || defined(_WIN32) # define LIBBUILD2_MTIME_CHECK true #else # define LIBBUILD2_MTIME_CHECK false |