From 2a80bcfa96089967b299eea0454d9debe52fa0f6 Mon Sep 17 00:00:00 2001 From: Alexey Panteleev Date: Tue, 8 Mar 2022 12:16:32 -0800 Subject: Slangc improvements: help message, downstream error passthrough (#2152) * Pass through the downstream compiler error messages if they are not recognized. * Added a help message that is printed on -h, -help, --help. Added -version as an alias for -v. * Fixed the bug in -lang option processing. --- source/compiler-core/slang-downstream-compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/compiler-core/slang-downstream-compiler.cpp') diff --git a/source/compiler-core/slang-downstream-compiler.cpp b/source/compiler-core/slang-downstream-compiler.cpp index daf31c9eb..1dfaea0a4 100644 --- a/source/compiler-core/slang-downstream-compiler.cpp +++ b/source/compiler-core/slang-downstream-compiler.cpp @@ -221,7 +221,7 @@ void DownstreamDiagnostics::requireErrorDiagnostic() DownstreamDiagnostic diagnostic; diagnostic.reset(); diagnostic.severity = DownstreamDiagnostic::Severity::Error; - diagnostic.text = "Generic error during compilation"; + diagnostic.text = rawDiagnostics; // Add the diagnostic diagnostics.add(diagnostic); -- cgit v1.2.3