compiler: remove --lzma option from upx call

pull/3553/head^2
nsauk 2020-01-24 00:06:49 +03:00 committed by Alexander Medvednikov
parent 7b18e5d198
commit dd61a22367
1 changed files with 6 additions and 1 deletions

View File

@ -395,7 +395,12 @@ start:
println('strip failed')
return
}
ret2 := os.system('upx --lzma -qqq $v.out_name')
// NB: upx --lzma can sometimes fail with NotCompressibleException
// See https://github.com/vlang/v/pull/3528
mut ret2 := os.system('upx --lzma -qqq $v.out_name')
if ret2 != 0 {
ret2 = os.system('upx -qqq $v.out_name')
}
if ret2 != 0 {
println('upx failed')
$if macos {