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

builder: support v.mod/@VROOT, fix -cflags and -cache

This commit is contained in:
Delyan Angelov
2020-04-11 09:57:31 +03:00
parent 053de0b8e3
commit ba799b3f85
5 changed files with 39 additions and 10 deletions

View File

@@ -132,6 +132,7 @@ fn parse_args(args []string) (&pref.Preferences, string) {
'-obfuscate' { res.obfuscate = true }
'-translated' { res.translated = true }
'-showcc' { res.show_cc = true }
'-cache' { res.is_cache = true }
'-keepc' { res.is_keep_c = true }
//'-x64' { res.translated = true }
'-os' {
@@ -144,6 +145,10 @@ fn parse_args(args []string) (&pref.Preferences, string) {
res.os = tmp
i++
}
'-cflags' {
res.cflags = cmdline.option(args, '-cflags', '')
i++
}
'-cc' {
res.ccompiler = cmdline.option(args, '-cc', 'cc')
i++