diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-23 16:39:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 16:39:46 -0800 |
| commit | 401d8cdb12ae69aeb216c80c9bb90240d8359649 (patch) | |
| tree | 4548c9de52bdeff424a0a3969ad407fccb3c0f09 /source/slang/slang-compiler.cpp | |
| parent | 58eb6f7da01af1767282ee12b0b4b25c57e52afb (diff) | |
Add slangc interface to compile and use ir modules. (#3615)
* Add slangc interface to compile and use ir modules.
* Fix glsl scalar layout settings not copied to target.
* Fix.
* Cleanups.
Diffstat (limited to 'source/slang/slang-compiler.cpp')
| -rw-r--r-- | source/slang/slang-compiler.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index c0be68723..78aa4a18b 100644 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -1488,7 +1488,7 @@ namespace Slang // Add all of the module libraries libraries.addRange(linkage->m_libModules.getBuffer(), linkage->m_libModules.getCount()); } - + options.compilerSpecificArguments = allocator.allocate(compilerSpecificArguments); options.requiredCapabilityVersions = SliceUtil::asSlice(requiredCapabilityVersions); options.libraries = SliceUtil::asSlice(libraries); @@ -1879,14 +1879,7 @@ namespace Slang SerialContainerUtil::WriteOptions options; options.compressionType = linkage->m_optionSet.getEnumOption<SerialCompressionType>(CompilerOptionName::IrCompression); - if (linkage->m_optionSet.getBoolOption(CompilerOptionName::Obfuscate)) - { - // 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; - } - + // If debug information is enabled, enable writing out source locs if (_shouldWriteSourceLocs(linkage)) { |
