From de287c0add70c4907d2d5be38663acdf87801456 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 10 Feb 2021 19:12:12 +0200 Subject: [PATCH] builder: add C source code size info on -stats --- vlib/v/builder/c.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/builder/c.v b/vlib/v/builder/c.v index 5f2f849156..f761c08200 100644 --- a/vlib/v/builder/c.v +++ b/vlib/v/builder/c.v @@ -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) } 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') + } // os.write_file(out_file, b.gen_c(v_files)) }