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:
parent
7471e1fd05
commit
3af700d950
@ -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 { '' }
|
||||
|
Loading…
Reference in New Issue
Block a user