summaryrefslogtreecommitdiff
path: root/xmake/modules/private/cache/build_cache.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
-rw-r--r--xmake/modules/private/cache/build_cache.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua
index a8645f189..8ab9cb03a 100644
--- a/xmake/modules/private/cache/build_cache.lua
+++ b/xmake/modules/private/cache/build_cache.lua
@@ -50,7 +50,7 @@ function cachekey(program, cppfile, cppflags, envs)
table.insert(items, cppflag)
end
table.sort(items)
- table.insert(items, hash.md5(cppfile)) -- TODO use blake3
+ table.insert(items, hash.xxhash128(cppfile))
if envs then
local basename = path.basename(program)
if basename == "cl" then
@@ -62,7 +62,7 @@ function cachekey(program, cppfile, cppflags, envs)
end
end
end
- return hash.md5(bytes(table.concat(items, "")))
+ return hash.xxhash128(bytes(table.concat(items, "")))
end
-- get cache root directory