summaryrefslogtreecommitdiff
path: root/xmake/rules/c++
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-01 00:37:42 +0800
committerruki <[email protected]>2025-10-01 00:37:42 +0800
commit4ef482175337e64d7bf2fb33abec2917c9e4fd4d (patch)
treed5651cb3495010394e924178d9aa211bec8d2c3e /xmake/rules/c++
parente4a2d682015b651adfcf7d7494a295c3276d7f10 (diff)
update some uuid hashes
Diffstat (limited to 'xmake/rules/c++')
-rw-r--r--xmake/rules/c++/unity_build/unity_build.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/unity_build/unity_build.lua b/xmake/rules/c++/unity_build/unity_build.lua
index e8f37f868..1ced33ec8 100644
--- a/xmake/rules/c++/unity_build/unity_build.lua
+++ b/xmake/rules/c++/unity_build/unity_build.lua
@@ -36,7 +36,7 @@ function _merge_unityfile(target, sourcefile_unity, sourcefiles, opt)
sourcefile_unity = path.absolute(sourcefile_unity)
sourcefile = path.relative(sourcefile, path.directory(sourcefile_unity))
if uniqueid then
- unityfile:print("#define %s %s", uniqueid, "unity_" .. hash.uuid():split("-", {plain = true})[1])
+ unityfile:print("#define %s %s", uniqueid, "unity_" .. hash.random32())
end
unityfile:print("#include \"%s\"", sourcefile)
if uniqueid then