builder: add generated C lines with -stats too

pull/8680/head
Delyan Angelov 2021-02-10 20:02:31 +02:00
parent c636a7080d
commit 93c1c1cec3
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ pub fn (mut b Builder) build_c(v_files []string, out_file string) {
f.writeln(output2) or { panic(err) } f.writeln(output2) or { panic(err) }
f.close() f.close()
if b.pref.is_stats { if b.pref.is_stats {
println('generated C source code size: ${util.bold(output2.len.str())} bytes') println('generated C source code size: ${util.bold((output2.count('\n') + 1).str())} lines, ${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))
} }