JSSpecCompiler: Add option to silence all diagnostics and use in tests

In the future, we will probably want to test regressions in diagnostics
too but let's not do that for now.
This commit is contained in:
Dan Klishch
2024-03-09 16:40:18 -05:00
committed by Andrew Kaster
parent 0e7c33b1be
commit ec16556fea
2 changed files with 7 additions and 1 deletions

View File

@@ -92,6 +92,8 @@ Vector<ByteString> build_command_line_arguments(LexicalPath const& test_source,
if (test_source.has_extension(".cpp"sv))
result.append("-xc++"sv);
result.append("--silence-diagnostics"sv);
result.append(test_source.string());
return result;