From 3fea56ef77a33273bf5af6f432163b30c0a0e1dc Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 10 Mar 2023 14:19:48 -0500 Subject: Support for PDB output from DXC (#2693) * #include an absolute path didn't work - because paths were taken to always be relative. * Add versioning to CompileOptions for DownstreamCompiler so we can add new options without breaking binary interface. * Add support for debug info format to API/command line processing. * Small simplification. * Add support for adding PDB output from a compilation. * Use builtin offset of directly. * Fix typo in debug. --- source/slang/slang.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 3a11d3831..da8fcdcd6 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -4737,6 +4737,11 @@ void EndToEndCompileRequest::setDebugInfoLevel(SlangDebugInfoLevel level) getLinkage()->debugInfoLevel = DebugInfoLevel(level); } +void EndToEndCompileRequest::setDebugInfoFormat(SlangDebugInfoFormat format) +{ + getLinkage()->debugInfoFormat = DebugInfoFormat(format); +} + void EndToEndCompileRequest::setOptimizationLevel(SlangOptimizationLevel level) { getLinkage()->optimizationLevel = OptimizationLevel(level); -- cgit v1.2.3