Improve time stamp precision of qmake's touch function
On POSIX compliant platforms, the default precision we apply to preserving time stamps is seconds. However we can do better and use utimensat() - if available - to increase the precision to nanoseconds. The values are provided by statbuf's st_mtim. This is guarded for compatibility with older systems, similar to commit 494ced13292fa9d7b572f5310090f6b8fab36e26. Change-Id: I6928660230d84f8511bf0f58e268906d2e575e04 Reviewed-by:Oswald Buddenhagen <oswald.buddenhagen@qt.io> (cherry picked from qtbase/d83a20af1d05b5958d3559482b715777a57dea7a) Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by:
Simon Hausmann <simon.hausmann@qt.io>
Showing
Please register or sign in to comment