From ae7d58b1a559d36c602bf6b1d8e396324cc34003 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Sat, 9 Oct 2021 10:40:27 -0400 Subject: Small improvements for premake linking on linux (#1958) * #include an absolute path didn't work - because paths were taken to always be relative. * Small improvements to premake for linux around linking. * Link with pthread of slang-glslang. --- source/compiler-core/slang-downstream-compiler.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/compiler-core/slang-downstream-compiler.h b/source/compiler-core/slang-downstream-compiler.h index ed932a5c9..1e6571e0f 100644 --- a/source/compiler-core/slang-downstream-compiler.h +++ b/source/compiler-core/slang-downstream-compiler.h @@ -67,12 +67,12 @@ struct DownstreamDiagnostic /// Given diagnostics in inText that are colon delimited, use lineParser to do per line parsing. static SlangResult parseColonDelimitedDiagnostics(const UnownedStringSlice& inText, Int pathIndex, LineParser lineParser, List& outDiagnostics); - Severity severity; ///< The severity of error - Stage stage; ///< The stage the error came from - String text; ///< The text of the error - String code; ///< The compiler specific error code - String filePath; ///< The path the error originated from - Int fileLine; ///< The line number the error came from + Severity severity = Severity::Unknown; ///< The severity of error + Stage stage = Stage::Compile; ///< The stage the error came from + String text; ///< The text of the error + String code; ///< The compiler specific error code + String filePath; ///< The path the error originated from + Int fileLine = 0; ///< The line number the error came from }; struct DownstreamDiagnostics -- cgit v1.2.3