diff options
| author | Alexey Panteleev <apanteleev87@gmail.com> | 2022-03-08 12:16:32 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-08 15:16:32 -0500 |
| commit | 2a80bcfa96089967b299eea0454d9debe52fa0f6 (patch) | |
| tree | c8e841e358e970f40c4f2d07409c7c6d7ae4c566 /source/compiler-core/slang-downstream-compiler.cpp | |
| parent | 11da2fb2051894b3cc873748cfc8f47588d8af93 (diff) | |
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.
Diffstat (limited to 'source/compiler-core/slang-downstream-compiler.cpp')
| -rw-r--r-- | source/compiler-core/slang-downstream-compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
