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

vself: fix v self (it compiled to cmd/v/v without -o)

This commit is contained in:
Delyan Angelov 2020-10-16 15:05:57 +03:00
parent 7471e1fd05
commit 3af700d950

View File

@ -12,7 +12,7 @@ fn main() {
self_idx := os.args.index('self')
args := os.args[1..self_idx]
jargs := args.join(' ')
obinary := cmdline.option(args, '-o', 'v')
obinary := cmdline.option(args, '-o', '')
sargs := if obinary != '' { jargs } else { '$jargs -o v2 ' }
cmd := '$vexe $sargs cmd/v'
options := if args.len > 0 { '($sargs)' } else { '' }