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

compiler: do not exit early, when given -o x.c or -o x.js

This commit is contained in:
Delyan Angelov
2020-05-08 15:31:03 +03:00
parent 4c320e1512
commit e08566d571
4 changed files with 12 additions and 2 deletions

View File

@@ -28,6 +28,10 @@ const (
)
fn main() {
main_v()
}
fn main_v() {
args := os.args[1..]
// args = 123
if args.len == 0 || args[0] in ['-', 'repl'] {