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

pref: disable gc for translated code

This commit is contained in:
Alexander Medvednikov 2022-06-19 20:07:45 +03:00
parent bc60b0d1a3
commit 924239026c

View File

@ -498,6 +498,7 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
} }
'-translated' { '-translated' {
res.translated = true res.translated = true
res.gc_mode = .no_gc // no gc in c2v'ed code, at least for now
} }
'-m32', '-m64' { '-m32', '-m64' {
res.m64 = arg[2] == `6` res.m64 = arg[2] == `6`