ci: fix the `v -autofree cmd/v` job
parent
66fafe7b7b
commit
9c67a1cf62
|
@ -46,14 +46,22 @@ 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 {
|
||||||
slines := util.bold((output2.count('\n') + 1).str())
|
|
||||||
sbytes := util.bold(output2.len.str())
|
|
||||||
mut all_v_source_lines, mut all_v_source_bytes := 0, 0
|
mut all_v_source_lines, mut all_v_source_bytes := 0, 0
|
||||||
for mut pf in b.parsed_files {
|
for mut pf in b.parsed_files {
|
||||||
all_v_source_lines += pf.lines
|
all_v_source_lines += pf.lines
|
||||||
all_v_source_bytes += pf.bytes
|
all_v_source_bytes += pf.bytes
|
||||||
}
|
}
|
||||||
println(' V source code size: ${util.bold(all_v_source_lines.str())} lines, ${util.bold(all_v_source_bytes.str())} bytes')
|
mut sall_v_source_lines := all_v_source_lines.str()
|
||||||
|
mut sall_v_source_bytes := all_v_source_bytes.str()
|
||||||
|
mut slines := (output2.count('\n') + 1).str()
|
||||||
|
mut sbytes := output2.len.str()
|
||||||
|
//
|
||||||
|
slines = util.bold('${slines:10s}')
|
||||||
|
sbytes = util.bold('${sbytes:10s}')
|
||||||
|
sall_v_source_lines = util.bold('${sall_v_source_lines:10s}')
|
||||||
|
sall_v_source_bytes = util.bold('${sall_v_source_bytes:10s}')
|
||||||
|
//
|
||||||
|
println(' V source code size: $sall_v_source_lines lines, $sall_v_source_bytes bytes')
|
||||||
println('generated C source code size: $slines lines, $sbytes bytes')
|
println('generated C source code size: $slines lines, $sbytes bytes')
|
||||||
}
|
}
|
||||||
// os.write_file(out_file, b.gen_c(v_files))
|
// os.write_file(out_file, b.gen_c(v_files))
|
||||||
|
|
Loading…
Reference in New Issue