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

builder: handle linker errors when building .o files

This commit is contained in:
Alexander Medvednikov 2022-06-16 15:19:13 +03:00
parent 26714fadc5
commit fb5a40d1c8

View File

@ -93,7 +93,8 @@ fn (mut v Builder) post_process_c_compiler_output(res os.Result) {
}
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 {
verror(r'Your V installation may be out-of-date. Try removing `thirdparty\tcc\` and running `.\make.bat`')
} $else {