1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

View File

@ -599,7 +599,7 @@ fn (mut b Builder) cc_linux_cross() {
println('Downloading files for Linux cross compilation (~18 MB)...') println('Downloading files for Linux cross compilation (~18 MB)...')
zip_file := sysroot[..sysroot.len - 1] + '.zip' zip_file := sysroot[..sysroot.len - 1] + '.zip'
os.system('curl -L -o $zip_file $zip_url') 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) { if !os.is_dir(sysroot) {
println('Failed to download.') println('Failed to download.')
exit(1) exit(1)