fix feature sdcc=n (#393)

This commit is contained in:
Cyano Hao 2024-04-24 12:02:10 +08:00 committed by GitHub
parent 334be5b76a
commit 30693baa9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -265,8 +265,10 @@ void resetCppParser(std::shared_ptr<CppParser> parser, int compilerSetIndex)
compilerSetIndex=pSettings->compilerSets().defaultIndex();
}
Settings::PCompilerSet compilerSet = pSettings->compilerSets().getSet(compilerSetIndex);
#ifdef ENABLE_SDCC
if (compilerSet && compilerSet->compilerType()==CompilerType::SDCC)
parser->setLanguage(ParserLanguage::SDCC);
#endif
parser->clearIncludePaths();
bool isCpp = parser->language()==ParserLanguage::CPlusPlus;
if (compilerSet) {