diff options
| author | ruki <[email protected]> | 2024-10-11 00:56:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-10-11 00:56:19 +0800 |
| commit | e0c0cddf7cc74bfbb2f948651be251ce7d4f6b57 (patch) | |
| tree | 7716e34bcbf6fba33851d9a07becaba3aaf05d0a /xmake/core/project/target.lua | |
| parent | d023f3501a95bcd2c7475b578bed7585d8ed60d3 (diff) | |
replace some hash case
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 4ca895d0c..4e908ec6b 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1496,7 +1496,7 @@ function _instance:autogenfile(sourcefile, opt) -- @see -- https://github.com/xmake-io/xmake/issues/3021 -- https://github.com/xmake-io/xmake/issues/3715 - relativedir = hash.uuid4(relativedir):gsub("%-", ""):lower() + relativedir = hash.strhash128(relativedir) end relativedir = relativedir:gsub("%.%.", "__") local rootdir = (opt and opt.rootdir) and opt.rootdir or self:autogendir() @@ -2138,7 +2138,7 @@ function _instance:dependfile(objectfile) -- @see -- https://github.com/xmake-io/xmake/issues/3021 -- https://github.com/xmake-io/xmake/issues/3715 - relativedir = hash.uuid4(relativedir):gsub("%-", ""):lower() + relativedir = hash.strhash128(relativedir) end -- originfile: project/build/.objs/xxxx/../../xxx.c will be out of range for objectdir |
