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

use autofree only with -autofree for now

This commit is contained in:
Alexander Medvednikov 2020-04-01 23:28:56 +02:00
parent 39434155f8
commit 24fc4a4c04

View File

@ -78,7 +78,7 @@ pub fn cgen(files []ast.File, table &table.Table, pref &pref.Preferences) string
if g.file.path.ends_with('_test.v') {
g.is_test = is_test
}
if g.file.path == '' || is_test || building_v {
if g.file.path == '' || is_test || building_v || !g.pref.autofree {
// cgen test or building V
// println('autofree=false')
g.autofree = false