diff options
Diffstat (limited to 'source/slangc/main.cpp')
| -rw-r--r-- | source/slangc/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slangc/main.cpp b/source/slangc/main.cpp index 6fb394cce..da670909d 100644 --- a/source/slangc/main.cpp +++ b/source/slangc/main.cpp @@ -34,6 +34,11 @@ int MAIN(int argc, char** argv) SlangSession* session = spCreateSession(nullptr); SlangCompileRequest* compileRequest = spCreateCompileRequest(session); + spSetDiagnosticCallback( + compileRequest, + &diagnosticCallback, + nullptr); + spSetCommandLineCompilerMode(compileRequest); char const* appName = "slangc"; @@ -46,11 +51,6 @@ int MAIN(int argc, char** argv) exit(1); } - spSetDiagnosticCallback( - compileRequest, - &diagnosticCallback, - nullptr); - // Invoke the compiler #ifndef _DEBUG |
