Skip to content

Commit 453cc41

Browse files
authored
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.
1 parent bbf1ba4 commit 453cc41

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

vlib/v/builder/cc.v

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ fn (mut v Builder) post_process_c_compiler_output(res os.Result) {
6060
}
6161
return
6262
}
63-
if res.exit_code != 0 && v.pref.gc_mode != .no_gc && res.output.contains('libgc.a')
64-
&& !v.pref.is_o {
65-
$if windows {
66-
verror(r'Your V installation may be out-of-date. Try removing `thirdparty\tcc\` and running `.\make.bat`')
67-
} $else {
68-
verror('Your V installation may be out-of-date. Try removing `thirdparty/tcc/` and running `make`')
69-
}
70-
}
7163
for emsg_marker in [builder.c_verror_message_marker, 'error: include file '] {
7264
if res.output.contains(emsg_marker) {
7365
emessage := res.output.all_after(emsg_marker).all_before('\n').all_before('\r').trim_right('\r\n')

0 commit comments

Comments
 (0)