summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-09 22:40:45 +0800
committerruki <[email protected]>2025-10-09 22:40:45 +0800
commitefe96186ac2678b006a00b86e75b2c6346398ab4 (patch)
treee4bfbb6ff1d59e644e40fc077d726bc9aefa1ea6
parent79879d1815c0dce96ad327c13d411d512777dbc4 (diff)
fix build dir in package
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index da2544d08..3f9917850 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -830,9 +830,9 @@ function _instance:builddir()
if self:is_local() then
local name = self:name():lower():gsub("::", "_")
local rootdir = path.join(config.builddir({absolute = true}), ".packages", name:sub(1, 1):lower(), name, self:version_str())
- builddir = path.join(rootdir, "cache", "build_" .. self:buildhash():sub(1, 8))
+ builddir = path.join(rootdir, "cache", "build_" .. hash.rand64())
else
- builddir = "build_" .. self:buildhash():sub(1, 8)
+ builddir = "build_" .. hash.rand64()
end
self._BUILDDIR = builddir
end