diff options
| author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-07-23 12:30:45 +0200 |
|---|---|---|
| committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-07-23 14:39:09 +0200 |
| commit | 57e4655e07087a50dfbdd3b9d6886c941bb2ff6f (patch) | |
| tree | 4b5a0a1f7d41ddc6198214f23e20459476ec5adc /src/lib/tools | |
| parent | 1670c3af43c7af113b9f6eadc1d30d1e271cfc6c (diff) | |
| download | qbs-57e4655e07087a50dfbdd3b9d6886c941bb2ff6f.tar.gz | |
add build option --check-timestamps
Give users the possibility to force qbs to read the physical
timestamps instead of using the stored timestamps.
Task-number: QBS-303
Change-Id: I6010515b5e8f97ec0b91069cbc7d8a1b0931dce5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/tools')
| -rw-r--r-- | src/lib/tools/buildoptions.cpp | 19 | ||||
| -rw-r--r-- | src/lib/tools/buildoptions.h | 3 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/tools/buildoptions.cpp b/src/lib/tools/buildoptions.cpp index e836206fb..54b8be547 100644 --- a/src/lib/tools/buildoptions.cpp +++ b/src/lib/tools/buildoptions.cpp @@ -46,6 +46,7 @@ public: int maxJobCount; bool dryRun; bool keepGoing; + bool forceTimestampCheck; bool logElapsedTime; }; @@ -192,6 +193,24 @@ void BuildOptions::setKeepGoing(bool keepGoing) } /*! + * \brief Returns true if qbs is to use physical timestamps instead of the timestamps stored in the + * build graph. + * The default is \c false. + */ +bool BuildOptions::forceTimestampCheck() const +{ + return d->forceTimestampCheck; +} + +/*! + * \brief Controls whether qbs should use physical timestamps for up-to-date checks. + */ +void BuildOptions::setForceTimestampCheck(bool enabled) +{ + d->forceTimestampCheck = enabled; +} + +/*! * \brief Returns true iff the time the operation takes will be logged. * The default is \c false. */ diff --git a/src/lib/tools/buildoptions.h b/src/lib/tools/buildoptions.h index 7bf37c66e..4ac1ab3bd 100644 --- a/src/lib/tools/buildoptions.h +++ b/src/lib/tools/buildoptions.h @@ -61,6 +61,9 @@ public: bool keepGoing() const; void setKeepGoing(bool keepGoing); + bool forceTimestampCheck() const; + void setForceTimestampCheck(bool enabled); + bool logElapsedTime() const; void setLogElapsedTime(bool log); |
