File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function clone_llvm()
34
34
print (" Clang release: " .. clang_release )
35
35
36
36
if os .ishost (" windows" ) then
37
- extract = extract_7z
37
+ extract = extract_7z_tar_gz
38
38
else
39
39
extract = extract_tar_gz
40
40
end
@@ -153,9 +153,15 @@ function get_7z_path()
153
153
return " 7z.exe"
154
154
end
155
155
156
+ function extract_7z_tar_gz (archive , dest_dir )
157
+ extract_7z (archive , dest_dir )
158
+ local tar = string.sub (archive , 1 , - 4 )
159
+ extract_7z (tar , dest_dir )
160
+ end
161
+
156
162
function extract_7z (archive , dest_dir )
157
- return execute_or_die (string.format (" %s x %s -o%s -y" , get_7z_path (),
158
- archive , dest_dir ), true )
163
+ return execute (string.format (" %s x %s -o%s -y" , get_7z_path (),
164
+ archive , dest_dir ), false )
159
165
end
160
166
161
167
function extract_tar_xz (archive , dest_dir )
You can’t perform that action at this time.
0 commit comments