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

builder: add C source code size info on -stats

This commit is contained in:
Delyan Angelov 2021-02-10 19:12:12 +02:00
parent 4305ce1493
commit de287c0add
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -38,6 +38,9 @@ pub fn (mut b Builder) build_c(v_files []string, out_file string) {
mut f := os.create(out_file) or { panic(err) } mut f := os.create(out_file) or { panic(err) }
f.writeln(output2) or { panic(err) } f.writeln(output2) or { panic(err) }
f.close() f.close()
if b.pref.is_stats {
println('generated C source code size: ${util.bold(output2.len.str())} bytes')
}
// os.write_file(out_file, b.gen_c(v_files)) // os.write_file(out_file, b.gen_c(v_files))
} }