diff options
| author | ruki <[email protected]> | 2022-05-19 23:18:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-19 23:18:08 +0800 |
| commit | 5669a698e75cce650e4753d6203697423c2ec67e (patch) | |
| tree | bd31432f71ce04f5f5dba34695fc55ed87e906d9 /xmake/modules/private/cache/build_cache.lua | |
| parent | 7ee3bcea46426a9cc67b5a175f0f4abe0e5dd238 (diff) | |
use xxhash128
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
| -rw-r--r-- | xmake/modules/private/cache/build_cache.lua | 4 |
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 |
