We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os.quoted_path()
1 parent f053f99 commit b94da8aCopy full SHA for b94da8a
1 file changed
vlib/v/builder/cc.v
@@ -810,16 +810,16 @@ pub fn (mut v Builder) cc() {
810
break
811
}
812
if v.pref.compress {
813
- ret := os.system('strip ${v.pref.out_name}')
+ ret := os.system('strip ${os.quoted_path(v.pref.out_name)}')
814
if ret != 0 {
815
println('strip failed')
816
return
817
818
// Note: upx --lzma can sometimes fail with NotCompressibleException
819
// See https://github.com/vlang/v/pull/3528
820
- mut ret2 := os.system('upx --lzma -qqq ${v.pref.out_name}')
+ mut ret2 := os.system('upx --lzma -qqq ${os.quoted_path(v.pref.out_name)}')
821
if ret2 != 0 {
822
- ret2 = os.system('upx -qqq ${v.pref.out_name}')
+ ret2 = os.system('upx -qqq ${os.quoted_path(v.pref.out_name)}')
823
824
825
println('upx failed')
0 commit comments