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

compiler: remove --lzma option from upx call

This commit is contained in:
nsauk 2020-01-24 00:06:49 +03:00 committed by Alexander Medvednikov
parent 7b18e5d198
commit dd61a22367

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 {