From 7a9b326200e587baba580dbd4b761fb65a231301 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 29 Jul 2021 09:54:52 +0300 Subject: [PATCH] ci: fix -cstrict rebuilding of V with clang --- vlib/v/gen/c/cgen.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index a8dd6e0ffd..4a9a9a6e6b 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -901,6 +901,10 @@ pub fn (mut g Gen) write_alias_typesymbol_declaration(sym ast.TypeSymbol) { parent_styp = g.typ(sym.info.parent_type) } } + if parent_styp == 'byte' && sym.cname == 'u8' { + // TODO: remove this check; it is here just to fix V rebuilding in -cstrict mode with clang-12 + return + } g.type_definitions.writeln('typedef $parent_styp $sym.cname;') }