Commit 30b52482 authored by Simon Hausmann's avatar Simon Hausmann Committed by Oswald Buddenhagen
Browse files

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: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
(cherry picked from qtbase/d83a20af1d05b5958d3559482b715777a57dea7a)
Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: default avatarSimon Hausmann <simon.hausmann@qt.io>
parent 47300485
Showing with 8 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment