From 4b68dffa49d307f89fc30884083c846d7f7fcf40 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 19 Mar 2025 14:50:16 +0200 Subject: [PATCH] v.util: shorten the V paths used in the C `#line` directives with tcc (the ../../../.. etc is no longer needed with newer tcc) (#23974) --- vlib/v/util/errors.v | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vlib/v/util/errors.v b/vlib/v/util/errors.v index 4a92d1e052..7b7f2628d6 100644 --- a/vlib/v/util/errors.v +++ b/vlib/v/util/errors.v @@ -200,13 +200,6 @@ pub fn verror(kind string, s string) { } pub fn vlines_escape_path(path string, ccompiler string) string { - is_cc_tcc := ccompiler.contains('tcc') - if is_cc_tcc { - // tcc currently has a bug, causing all #line files, - // to be prefixed with the *same folder as the .tmp.c file* - // this ../../ escaping, is a temporary workaround for that - return '../../../../../..' + cescaped_path(os.real_path(path)) - } return cescaped_path(os.real_path(path)) }