From 924239026ce55e70ceb0c91b8bc26ab22a7c2d43 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 19 Jun 2022 20:07:45 +0300 Subject: [PATCH] pref: disable gc for translated code --- vlib/v/pref/pref.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index 0d6a0c7e0f..a9ac84789e 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -498,6 +498,7 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin } '-translated' { res.translated = true + res.gc_mode = .no_gc // no gc in c2v'ed code, at least for now } '-m32', '-m64' { res.m64 = arg[2] == `6`