diff options
| author | ruki <[email protected]> | 2025-10-01 00:37:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-01 00:37:42 +0800 |
| commit | 4ef482175337e64d7bf2fb33abec2917c9e4fd4d (patch) | |
| tree | d5651cb3495010394e924178d9aa211bec8d2c3e /xmake/core/project/project.lua | |
| parent | e4a2d682015b651adfcf7d7494a295c3276d7f10 (diff) | |
update some uuid hashes
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 86050ebec..0f3a83bda 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -25,6 +25,7 @@ local project = project or {} local os = require("base/os") local io = require("base/io") local path = require("base/path") +local hash = require("base/hash") local task = require("base/task") local utils = require("base/utils") local table = require("base/table") @@ -1380,7 +1381,8 @@ function project.tmpfile(opt_or_key) key = opt_or_key.key opt = opt_or_key end - return path.join(project.tmpdir(opt), "_" .. (hash.uuid4(key):gsub("-", ""))) + local filename = "_" .. (key and hash.strhash128(key) or (hash.random128())) + return path.join(project.tmpdir(opt), "_" .. filename) end -- get all modes |
