diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-03-10 14:19:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-10 14:19:48 -0500 |
| commit | 3fea56ef77a33273bf5af6f432163b30c0a0e1dc (patch) | |
| tree | 446df8ddd73521b33e836facaea2c27ef84c47fe /source/slang/slang-api.cpp | |
| parent | e39893e8eb1a9411fca4e5f885456a27a770d3a2 (diff) | |
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.
Diffstat (limited to 'source/slang/slang-api.cpp')
| -rw-r--r-- | source/slang/slang-api.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-api.cpp b/source/slang/slang-api.cpp index 45c583060..a03aa9071 100644 --- a/source/slang/slang-api.cpp +++ b/source/slang/slang-api.cpp @@ -385,6 +385,14 @@ SLANG_API void spSetDebugInfoLevel( request->setDebugInfoLevel(level); } +SLANG_API void spSetDebugInfoFormat( + slang::ICompileRequest* request, + SlangDebugInfoFormat format) +{ + SLANG_ASSERT(request); + request->setDebugInfoFormat(format); +} + SLANG_API void spSetOptimizationLevel( slang::ICompileRequest* request, SlangOptimizationLevel level) |
