pref: disable gc for translated code

master
Alexander Medvednikov 2022-06-19 20:07:45 +03:00
parent bc60b0d1a3
commit 924239026c
1 changed files with 1 additions and 0 deletions

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`