summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-compiler.cpp')
-rwxr-xr-xsource/slang/slang-compiler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp
index d8da642f4..3855eda68 100755
--- a/source/slang/slang-compiler.cpp
+++ b/source/slang/slang-compiler.cpp
@@ -2357,6 +2357,13 @@ SlangResult dissassembleDXILUsingDXC(
{
options.optionFlags |= SerialOptionFlag::DebugInfo;
}
+ if (linkage->m_obfuscateCode)
+ {
+ // If code is obfuscated, we *disable* AST output as it is not obfuscated and will reveal
+ // too much about IR.
+ // Also currently only IR is needed.
+ options.optionFlags &= ~SerialOptionFlag::ASTModule;
+ }
{
RiffContainer container;