From 385c045e5a68e7cd1caf0ee03219942f8a1efb29 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Tue, 26 Nov 2019 17:04:11 +1100 Subject: [PATCH] don't add generic parsers to v.files --- vlib/compiler/main.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/compiler/main.v b/vlib/compiler/main.v index e29932fecb..8f4fafc314 100644 --- a/vlib/compiler/main.v +++ b/vlib/compiler/main.v @@ -695,6 +695,7 @@ pub fn (v mut V) add_v_files_to_compile() { // add remaining main files last for p in v.parsers { if p.mod != 'main' { continue } + if p.is_vgen { continue } v.files << p.file_path } }