diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-18 08:04:15 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-18 08:04:15 +0000 |
| commit | 927e3fc0384c941f9ad313a28768660c3cdb1777 (patch) | |
| tree | ee82bef8d8332dad79d05db87f33979f0e7eb423 /tools | |
| parent | 34a4998658674411ef3b5a392483990467a5d6e2 (diff) | |
feat(driver): add #LIB directive hiding library lines in runtime errors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/driver/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<bool>(InputPaths.size(), false)}); + Units.push_back({InputPath, Programs[I], std::vector<bool>(InputPaths.size(), false), Lex.isLibrary()}); Units.back().Visible[I] = true; } for (size_t I = 0; I < Units.size(); ++I) { |
