From 8901004f9e783fb3a30e2ddb1e69e8f8a7d085f5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 28 Nov 2018 11:11:10 +0200 Subject: Add --[no-]mtime-check options to control this behavior at runtime By default the checks are enabled only for the staged toolchain. --- build2/config.hxx.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build2/config.hxx.in') diff --git a/build2/config.hxx.in b/build2/config.hxx.in index af42fcd..e84fd6a 100644 --- a/build2/config.hxx.in +++ b/build2/config.hxx.in @@ -21,6 +21,15 @@ // #define BUILD2_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. +// +#if BUILD2_STAGE +# define BUILD2_MTIME_CHECK true +#else +# define BUILD2_MTIME_CHECK false +#endif + #ifdef BUILD2_BOOTSTRAP #else #endif -- cgit v1.1