diff options
| author | ruki <[email protected]> | 2025-10-09 22:40:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-09 22:40:45 +0800 |
| commit | efe96186ac2678b006a00b86e75b2c6346398ab4 (patch) | |
| tree | e4bfbb6ff1d59e644e40fc077d726bc9aefa1ea6 /xmake/core/package/package.lua | |
| parent | 79879d1815c0dce96ad327c13d411d512777dbc4 (diff) | |
fix build dir in package
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 4 |
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 |
