From 93c1c1cec3c80ab3eb7721e36e0a1f70c3d5dd02 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 10 Feb 2021 20:02:31 +0200 Subject: [PATCH] builder: add generated C lines with -stats too --- vlib/v/builder/c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/builder/c.v b/vlib/v/builder/c.v index f761c08200..1cb5cb24ea 100644 --- a/vlib/v/builder/c.v +++ b/vlib/v/builder/c.v @@ -39,7 +39,7 @@ pub fn (mut b Builder) build_c(v_files []string, out_file string) { f.writeln(output2) or { panic(err) } f.close() 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)) }