use autofree only with -autofree for now

pull/4180/head
Alexander Medvednikov 2020-04-01 23:28:56 +02:00
parent 39434155f8
commit 24fc4a4c04
1 changed files with 1 additions and 1 deletions

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