builder: use tar instead of unzip in cc_linux_cross() (#6286)

pull/6294/head
Pavel Kolesnikov 2020-09-02 08:09:06 +00:00 committed by GitHub
parent 35cbca96e1
commit a3ee217537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ fn (mut b Builder) cc_linux_cross() {
println('Downloading files for Linux cross compilation (~18 MB)...')
zip_file := sysroot[..sysroot.len - 1] + '.zip'
os.system('curl -L -o $zip_file $zip_url')
os.system('unzip -q $zip_file -d $parent_dir')
os.system('tar -C $parent_dir -xf $zip_file')
if !os.is_dir(sysroot) {
println('Failed to download.')
exit(1)