From 453cc41c32229e704140197a663c3c7d9a869428 Mon Sep 17 00:00:00 2001 From: spaceface Date: Tue, 20 Sep 2022 14:12:39 +0200 Subject: [PATCH] builder: remove outdated tcc error (#15833) This was introduced when we enabled the GC by default,as a suggestion for resolving C errors caused by the user having an outdated TCC clone. However, now that several months have passed, it is very unlikely that people still have out-of-date copies of TCC, and instead it is more likely that this error message is hiding the true cause of some C errors unrelated to TCC or the GC. --- vlib/v/builder/cc.v | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 94b22cf543..62e5a99e43 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -60,14 +60,6 @@ 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') - && !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 { - verror('Your V installation may be out-of-date. Try removing `thirdparty/tcc/` and running `make`') - } - } for emsg_marker in [builder.c_verror_message_marker, 'error: include file '] { if res.output.contains(emsg_marker) { emessage := res.output.all_after(emsg_marker).all_before('\n').all_before('\r').trim_right('\r\n')