1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix -cstrict rebuilding of V with clang

This commit is contained in:
Delyan Angelov 2021-07-29 09:54:52 +03:00
parent 066dd023d2
commit 7a9b326200
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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;')
}