From 5669a698e75cce650e4753d6203697423c2ec67e Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 May 2022 23:18:08 +0800 Subject: use xxhash128 --- xmake/modules/private/cache/build_cache.lua | 4 ++-- 1 file 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 -- cgit v1.3.1