diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-12 11:44:30 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-13 17:01:03 (GMT) |
commit | 3039fd7a2934f726b37ba4ef8379364441241e7d (patch) | |
tree | e3a1a85a7687867f7d35ace6c826383f40e9ea4b /Source/cmDependsC.cxx | |
parent | b96c3c74dd76fb9805f02d7b9ce604bd135b34f8 (diff) | |
download | CMake-3039fd7a2934f726b37ba4ef8379364441241e7d.zip CMake-3039fd7a2934f726b37ba4ef8379364441241e7d.tar.gz CMake-3039fd7a2934f726b37ba4ef8379364441241e7d.tar.bz2 |
cmDependsC: Use faster cmSystemTools::FileTimeCompare
The file stat caching feature of the local cmFileTimeComparison instance is
unused in the addressed context. To avoid the allocation and initialization
overhead of cmFileTimeComparison use cmSystemTools::FileTimeCompare instead.
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r-- | Source/cmDependsC.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx index 57b5c36..a85f5ee 100644 --- a/Source/cmDependsC.cxx +++ b/Source/cmDependsC.cxx @@ -6,7 +6,6 @@ #include <utility> #include "cmAlgorithms.h" -#include "cmFileTimeComparison.h" #include "cmLocalGenerator.h" #include "cmMakefile.h" #include "cmSystemTools.h" @@ -258,8 +257,8 @@ void cmDependsC::ReadCacheFile() if (!haveFileName) { haveFileName = true; int newer = 0; - cmFileTimeComparison comp; - bool res = comp.FileTimeCompare(this->CacheFileName, line, &newer); + bool res = + cmSystemTools::FileTimeCompare(this->CacheFileName, line, &newer); if (res && newer == 1) // cache is newer than the parsed file { |