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:
@@ -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++
|
||||
|
Reference in New Issue
Block a user