Skip to content

Commit e2220e1

Browse files
committed
fix again
1 parent 5550e03 commit e2220e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

release.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function _get_require_libs(llvm_archive)
2121

2222
os.mkdir("package")
2323
os.mkdir("package/backup")
24-
archive.extract(path.absolute(llvm_archive), "package/llvm")
24+
archive.extract(llvm_archive, "package/llvm")
2525
-- Use --project to specify the clice project and avoid xmake finding parent directory xmake.lua
2626
local argv = {
2727
"config",
@@ -71,7 +71,7 @@ function _reduce_package_size(llvm_archive, unused_libs)
7171
os.tryrm("build")
7272
local workdir = "build/.pack"
7373
os.mkdir(workdir)
74-
archive.extract(path.absolute(llvm_archive), workdir)
74+
archive.extract(llvm_archive, workdir)
7575

7676
for _, lib in ipairs(unused_libs) do
7777
os.rm(path.join(workdir, format("lib/*%s*", lib)))
@@ -134,7 +134,7 @@ function main()
134134
local unused_libs
135135
for _, llvm_archive in ipairs(origin_files) do
136136
if llvm_archive:find("releasedbg") and llvm_archive:find("lto_n") then
137-
unused_libs = _get_require_libs(llvm_archive)
137+
unused_libs = _get_require_libs(path.absolute(llvm_archive))
138138
break
139139
end
140140
end
@@ -144,7 +144,7 @@ function main()
144144

145145
local files = {}
146146
for _, llvm_archive in ipairs(origin_files) do
147-
table.insert(files, _reduce_package_size(llvm_archive, unused_libs))
147+
table.insert(files, _reduce_package_size(path.absolute(llvm_archive), unused_libs))
148148
end
149149

150150
local binaries = {}

0 commit comments

Comments
 (0)