builder: make C compilation retrying more uniform

pull/8968/head
Delyan Angelov 2021-02-25 11:56:54 +02:00
parent 3362d7ecbb
commit 77b3440e44
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 4 additions and 4 deletions

View File

@ -636,10 +636,10 @@ fn (mut v Builder) cc() {
ccompiler_label := 'C ${os.file_name(ccompiler):3}'
util.timing_start(ccompiler_label)
res := os.exec(cmd) or {
println('C compilation failed.')
os.chdir(original_pwd)
verror(err)
return
os.Result{
exit_code: 111
output: 'C compilation failed.\n$err'
}
}
util.timing_measure(ccompiler_label)
if v.pref.show_c_output {