summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-05-10 14:10:53 -0700
committerGitHub <noreply@github.com>2023-05-10 14:10:53 -0700
commit99bc31fdd6fd9a6cbce6afd5fa9b52fb47873f61 (patch)
treeae6f8c301c771f5a27d1f775729a4fc759f1d804 /source/slang/slang-compiler.h
parentc8e6a6452f4e531dca09152178bae2f9a2fb999a (diff)
Add slangc options for reporting downstream compile time. (#2878)
* Add slangc options for reporting downstream compile time. * Update doc. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-compiler.h')
-rwxr-xr-xsource/slang/slang-compiler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h
index 42fc3ca1f..1386b37e8 100755
--- a/source/slang/slang-compiler.h
+++ b/source/slang/slang-compiler.h
@@ -2637,7 +2637,7 @@ namespace Slang
virtual SLANG_NO_THROW SlangDiagnosticFlags SLANG_MCALL getDiagnosticFlags() SLANG_OVERRIDE;
virtual SLANG_NO_THROW void SLANG_MCALL setDiagnosticFlags(SlangDiagnosticFlags flags) SLANG_OVERRIDE;
virtual SLANG_NO_THROW void SLANG_MCALL setDebugInfoFormat(SlangDebugInfoFormat format) SLANG_OVERRIDE;
-
+ virtual SLANG_NO_THROW void SLANG_MCALL setReportDownstreamTime(bool value) SLANG_OVERRIDE;
void setHLSLToVulkanLayoutOptions(int targetIndex, HLSLToVulkanLayoutOptions* vulkanLayoutOptions);
EndToEndCompileRequest(
@@ -2675,6 +2675,7 @@ namespace Slang
// Are we being driven by the command-line `slangc`, and should act accordingly?
bool m_isCommandLineCompile = false;
+ bool m_reportDownstreamCompileTime = false;
String m_diagnosticOutput;