summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-07 00:31:10 +0800
committerruki <[email protected]>2025-10-07 00:31:10 +0800
commit69caeb34da2be2d03a86752b144c75881fcabf8f (patch)
tree25d1efdc2d44d485782936e0e8023fc69e7436ac /xmake/rules
parent75a5ae1bfbd0570819c9cab6e623f2f26db2e8a2 (diff)
use hash64 instead of hash32
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/c++/modules/scanner.lua2
-rw-r--r--xmake/rules/c++/modules/support.lua3
2 files changed, 2 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/scanner.lua b/xmake/rules/c++/modules/scanner.lua
index fa2c3b98b..818e37aa2 100644
--- a/xmake/rules/c++/modules/scanner.lua
+++ b/xmake/rules/c++/modules/scanner.lua
@@ -418,7 +418,7 @@ function _patch_sourcebatch(target, sourcebatch)
memcache:set2(target:fullname(), "cached_sourcebatch", sourcebatch)
local keys = #sourcebatch.sourcefiles > 0 and table.concat(sourcebatch.sourcefiles) or "_"
- local sum = hash.strhash32(keys)
+ local sum = hash.strhash64(keys)
local cached_sum = localcache:get2(target:fullname(), "sourcebatch_sum")
if not cached_sum or cached_sum ~= sum then
localcache:set2(target:fullname(), "sourcebatch_sum", sum)
diff --git a/xmake/rules/c++/modules/support.lua b/xmake/rules/c++/modules/support.lua
index 2bf44bf51..0f89d4e98 100644
--- a/xmake/rules/c++/modules/support.lua
+++ b/xmake/rules/c++/modules/support.lua
@@ -273,7 +273,6 @@ function load_moduleinfo(target, sourcefile)
if os.isfile(dependfile) then
local data = io.load(dependfile)
if data then
- print(dependfile, data)
moduleinfo = json.decode(data.moduleinfo)
moduleinfo.sourcefile = sourcefile
end
@@ -348,7 +347,7 @@ function modules_cachedir(target, opt)
end
function get_modulehash(sourcefile)
- return hash.strhash32(sourcefile)
+ return hash.strhash64(sourcefile)
end
function get_metafile(target, module)