From 83b825e689d22e3e36d44c170e86cb1062f84b11 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Thu, 11 Jul 2024 18:58:52 +0200 Subject: Treat //+build ignore as private file --- src/common/ast.odin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/ast.odin b/src/common/ast.odin index b215eb8..4f1b25d 100644 --- a/src/common/ast.odin +++ b/src/common/ast.odin @@ -304,6 +304,9 @@ collect_value_decl :: proc( is_private_file = true } } + } else if strings.has_prefix(txt, "//+build ignore") { + is_private_pkg = true + is_private_file = true } } } -- cgit v1.2.3