diff options
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 857f4272c..805ea0fff 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -1707,6 +1707,10 @@ SlangResult OptionsParser::_parse( ScopedAllocation contents; SLANG_RETURN_ON_FAIL(File::readAllBytes(fileName.value, contents)); SLANG_RETURN_ON_FAIL(m_session->loadStdLib(contents.getData(), contents.getSizeInBytes())); + + // Ensure that the linkage's AST builder is up-to-date. + linkage->getASTBuilder()->m_cachedNodes = asInternal(m_session)->getGlobalASTBuilder()->m_cachedNodes; + break; } case OptionKind::CompileStdLib: m_compileStdLib = true; break; |
