builder: handle linker errors when building .o files

master
Alexander Medvednikov 2022-06-16 15:19:13 +03:00
parent 26714fadc5
commit fb5a40d1c8
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ fn (mut v Builder) post_process_c_compiler_output(res os.Result) {
} }
return return
} }
if res.exit_code != 0 && v.pref.gc_mode != .no_gc && res.output.contains('libgc.a') { if res.exit_code != 0 && v.pref.gc_mode != .no_gc && res.output.contains('libgc.a')
&& !v.pref.is_o {
$if windows { $if windows {
verror(r'Your V installation may be out-of-date. Try removing `thirdparty\tcc\` and running `.\make.bat`') verror(r'Your V installation may be out-of-date. Try removing `thirdparty\tcc\` and running `.\make.bat`')
} $else { } $else {