cgen: fix tcc compilation
parent
72a135c7c5
commit
d088c4cee3
|
@ -192,7 +192,6 @@ fn (mut g Gen) comp_if(node ast.IfExpr) {
|
||||||
if !node.is_expr && !node.has_else && node.branches.len == 1 {
|
if !node.is_expr && !node.has_else && node.branches.len == 1 {
|
||||||
if node.branches[0].stmts.len == 0 {
|
if node.branches[0].stmts.len == 0 {
|
||||||
// empty ifdef; result of target OS != conditional => skip
|
// empty ifdef; result of target OS != conditional => skip
|
||||||
g.write('/*empty $ if*/')
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !g.pref.output_cross_c {
|
if !g.pref.output_cross_c {
|
||||||
|
|
Loading…
Reference in New Issue