diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-26 17:00:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 17:00:31 -0800 |
| commit | 39522159c245e32a99cfdc47f03236f7028f5c61 (patch) | |
| tree | 4ae93fb32f267f7caa5ce55a6a52aac9f1f33bdd /source/slang/slang-options.cpp | |
| parent | 1d8e93cd434f0c7acbb6db747b32c3a3720c5c2e (diff) | |
Allow default values for `extern` symbols. (#3632)
* Allow default values for `extern` symbols.
* Fix.
* Fix test.
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 39578a1ea..f8231210c 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -417,6 +417,8 @@ void initCommandOptions(CommandOptions& options) "Generate SPIR-V output direclty rather than by compiling generated GLSL with glslang" }, { OptionKind::SPIRVCoreGrammarJSON, "-spirv-core-grammar", nullptr, "A path to a specific spirv.core.grammar.json to use when generating SPIR-V output" }, + { OptionKind::IncompleteLibrary, "-incomplete-library", nullptr, + "Allow generating code from incomplete libraries with unresolved external functions" }, #endif }; @@ -1681,6 +1683,7 @@ SlangResult OptionsParser::_parse( case OptionKind::OutputIncludes: case OptionKind::PreprocessorOutput: case OptionKind::DumpAst: + case OptionKind::IncompleteLibrary: linkage->m_optionSet.set(optionKind, true); break; break; case OptionKind::NoCodeGen: |
