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/b.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/b.cxx') diff --git a/build2/b.cxx b/build2/b.cxx index 74dc7a2..bb7ec41 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -327,7 +327,10 @@ main (int argc, char* argv[]) // Validate options. // if (ops.progress () && ops.no_progress ()) - fail << "inconsistent progress display options"; + fail << "both --progress and --no-progress specified"; + + if (ops.mtime_check () && ops.no_mtime_check ()) + fail << "both --mtime-check and --no-mtime-check specified"; // Global initializations. // -- cgit v1.1