From 927e3fc0384c941f9ad313a28768660c3cdb1777 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sun, 18 Oct 2026 08:04:15 +0000 Subject: feat(driver): add #LIB directive hiding library lines in runtime errors Co-Authored-By: Claude Opus 5.5 --- tools/driver/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/driver/main.cc b/tools/driver/main.cc index 3ee221b..5f3aaa2 100644 --- a/tools/driver/main.cc +++ b/tools/driver/main.cc @@ -161,7 +161,7 @@ int main(int argc, char **argv) { return compilationTerminated(); } if (Lex.hadError() || Parser.hadError()) return compilationTerminated(); - Units.push_back({InputPath, Programs[I], std::vector(InputPaths.size(), false)}); + Units.push_back({InputPath, Programs[I], std::vector(InputPaths.size(), false), Lex.isLibrary()}); Units.back().Visible[I] = true; } for (size_t I = 0; I < Units.size(); ++I) { -- cgit v1.3.1-4-g156e