1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builder: make C compilation retrying more uniform

This commit is contained in:
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

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 {