diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-20 12:24:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 12:24:00 -0800 |
| commit | 4d20fd329956ac89408b1628a8291fea01bc9a6d (patch) | |
| tree | 8e62d9c1ec05142fd25d0b31073fdb56d44691b0 /tools/slang-test/slangc-tool.cpp | |
| parent | 8e9b61e3bac69dbb37a1451b62302e688a017ced (diff) | |
Refactor compiler option representations. (#3598)
* Refactor compiler option representation.
* Fix binary compatibility.
* Add a test for specifying compiler options at link time.
* Fix binary compatibility.
* Fix binary compatibility.
* Fix backward compatibility on matrix layout.
* Fix.
* Fix.
* Fix.
* Fix gfx.
* Fix gfx.
* Fix dynamic dispatch.
* Polish.
Diffstat (limited to 'tools/slang-test/slangc-tool.cpp')
| -rw-r--r-- | tools/slang-test/slangc-tool.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/slang-test/slangc-tool.cpp b/tools/slang-test/slangc-tool.cpp index 4c2a3244c..55788d06b 100644 --- a/tools/slang-test/slangc-tool.cpp +++ b/tools/slang-test/slangc-tool.cpp @@ -45,14 +45,7 @@ SlangResult SlangCTool::innerMain(StdWriters* stdWriters, slang::IGlobalSession* compileRequest->setDiagnosticCallback(&_diagnosticCallback, nullptr); compileRequest->setCommandLineCompilerMode(); - { - const SlangResult res = compileRequest->processCommandLineArguments(&argv[1], argc - 1); - if (SLANG_FAILED(res)) - { - StdWriters::getOut().print("%s", compileRequest->getDiagnosticOutput()); - return res; - } - } + SLANG_RETURN_ON_FAIL(compileRequest->processCommandLineArguments(&argv[1], argc - 1)); SlangResult compileRes = SLANG_OK; |
