fix feature sdcc=n (#393)
This commit is contained in:
parent
334be5b76a
commit
30693baa9e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue