diff options
| author | Yong He <yonghe@outlook.com> | 2021-09-09 01:39:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-09 01:39:03 -0700 |
| commit | cc075b76ee25876135584d31ec650776fcb69166 (patch) | |
| tree | 119f7fcaae74df826f9a6503bb8144e799344824 /source/slang/slang.cpp | |
| parent | ebb29e6c830cafe74ca64da416ded01fc59d208a (diff) | |
Fix `spSetDumpIntermediates`. (#1931)
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index b6359146c..b79d97331 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -3921,6 +3921,13 @@ void EndToEndCompileRequest::setCompileFlags(SlangCompileFlags flags) void EndToEndCompileRequest::setDumpIntermediates(int enable) { getBackEndReq()->shouldDumpIntermediates = (enable != 0); + + // Change all existing targets to use the new setting. + auto linkage = getLinkage(); + for (auto& target : linkage->targets) + { + target->setDumpIntermediates(enable != 0); + } } void EndToEndCompileRequest::setDumpIntermediatePrefix(const char* prefix) |
