diff options
| author | ruki <[email protected]> | 2022-07-31 23:45:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-31 23:45:25 +0800 |
| commit | 63bf72bac39ea83aed26dc63d68aee67a3383a4a (patch) | |
| tree | 48ef2340f04e95592847fd73e69d0d64f2545b85 /xmake/core/base/os.lua | |
| parent | bb28bbb01c73ab1d7e455479f3338466a983d7d4 (diff) | |
fix touch
Diffstat (limited to 'xmake/core/base/os.lua')
| -rw-r--r-- | xmake/core/base/os.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index fff5c8408..aec706e55 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -559,6 +559,7 @@ end -- we will do not change it if atime/mtime is zero function os.touch(filepath, opt) opt = opt or {} + opt.mtime = os.time() if not os._touch(filepath, opt.atime or 0, opt.mtime or 0) then return false, string.format("cannot touch %s, %s", filepath, os.strerror()) end |
