diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index cfca2f2e6d..206efe918a 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -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 {