diff --git a/vlib/compiler/comptime.v b/vlib/compiler/comptime.v index 4fd50ffa91..a9c7824e7b 100644 --- a/vlib/compiler/comptime.v +++ b/vlib/compiler/comptime.v @@ -230,7 +230,9 @@ fn (p mut Parser) chash() { } else if hash.contains('define') { // Move defines on top - p.cgen.includes << '#$hash' + if p.first_pass() { + p.cgen.includes << '#$hash' + } } // Don't parse a non-JS V file (`#-js` flag) else if hash == '-js' {