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:
parent
39434155f8
commit
24fc4a4c04
@ -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') {
|
if g.file.path.ends_with('_test.v') {
|
||||||
g.is_test = is_test
|
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
|
// cgen test or building V
|
||||||
// println('autofree=false')
|
// println('autofree=false')
|
||||||
g.autofree = false
|
g.autofree = false
|
||||||
|
Loading…
Reference in New Issue
Block a user