Skip to content

Commit d7de568

Browse files
committed
v3: address fastc review feedback
1 parent 2460024 commit d7de568

4 files changed

Lines changed: 666 additions & 45 deletions

File tree

vlib/v3/driver/driver.v

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7477,19 +7477,21 @@ pub fn run(args []string) {
74777477
exit(1)
74787478
}
74797479
}
7480-
} else {
7481-
if backend_explicit {
7482-
os.write_file(bin_file + '.c', fastc_source) or {
7483-
eprintln('failed to retain generated fastc output ${bin_file}.c: ${err.msg()}')
7484-
exit(1)
7485-
}
7480+
b.print_report()
7481+
clear_macos_v3_compiler_error_fallback(macos_v3_fallback_file)
7482+
return
7483+
}
7484+
if backend_explicit {
7485+
os.write_file(bin_file + '.c', fastc_source) or {
7486+
eprintln('failed to retain generated fastc output ${bin_file}.c: ${err.msg()}')
7487+
exit(1)
74867488
}
7487-
if keep_c {
7488-
keep_c_file := keep_c_output_file(bin_file)
7489-
os.write_file(keep_c_file, fastc_source) or {
7490-
eprintln('failed to retain generated fastc output ${keep_c_file}: ${err.msg()}')
7491-
exit(1)
7492-
}
7489+
}
7490+
if keep_c {
7491+
keep_c_file := keep_c_output_file(bin_file)
7492+
os.write_file(keep_c_file, fastc_source) or {
7493+
eprintln('failed to retain generated fastc output ${keep_c_file}: ${err.msg()}')
7494+
exit(1)
74937495
}
74947496
}
74957497
if should_run {

0 commit comments

Comments
 (0)