diff options
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index dad69350e..7337b9210 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -343,6 +343,7 @@ void initCommandOptions(CommandOptions& options) "The name used as the basis for variables output for source embedding."}, { OptionKind::SourceEmbedLanguage, "-source-embed-language", "-source-embed-language <language>", "The language to be used for source embedding. Defaults to C/C++. Currently only C/C++ are supported"}, + { OptionKind::DisableShortCircuit, "-disable-short-circuit", nullptr, "Disable short-circuiting for \"&&\" and \"||\" operations" }, }; _addOptions(makeConstArrayView(generalOpts), options); @@ -2298,6 +2299,11 @@ SlangResult OptionsParser::_parse( break; } + case OptionKind::DisableShortCircuit: + { + linkage->m_optionSet.add(OptionKind::DisableShortCircuit, true); + break; + } default: { // Hmmm, we looked up and produced a valid enum, but it wasn't handled in the switch... |
