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

cgen: add support for v -printfn main file.v

This commit is contained in:
Delyan Angelov
2020-04-25 11:15:02 +03:00
parent 900d96c638
commit e0ab318f56
4 changed files with 20 additions and 4 deletions

View File

@@ -145,6 +145,10 @@ fn parse_args(args []string) (&pref.Preferences, string) {
'-freestanding' {
res.is_bare = true
}
'-prof', '-profile' {
eprintln('TODO: -prof')
res.is_prof = true
}
'-prod' {
res.is_prod = true
}
@@ -182,8 +186,12 @@ fn parse_args(args []string) (&pref.Preferences, string) {
}
res.os = target_os_kind
}
'-printfn' {
res.printfn_list << cmdline.option(current_args, '-printfn', '')
i++
}
'-cflags' {
res.cflags = cmdline.option(current_args, '-cflags', '')
res.cflags += ' ' + cmdline.option(current_args, '-cflags', '')
i++
}
'-define', '-d' {