forked from qt-creator/qt-creator
BareMetal: Fix typo in option to enable C++ language for IAR
We need to use the '--c++' option instead of '--ec++' to dump the macroses and headers for the C++ language. Change-Id: I545e661babc1ffa84ef189d28b2dd59bc3ccf29b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -88,7 +88,7 @@ static Macros dumpPredefinedMacros(const FilePath &compiler, const Core::Id lang
|
||||
QStringList arguments;
|
||||
arguments.push_back(fakeIn.fileName());
|
||||
if (languageId == ProjectExplorer::Constants::CXX_LANGUAGE_ID)
|
||||
arguments.push_back("--ec++");
|
||||
arguments.push_back("--c++");
|
||||
arguments.push_back("--predef_macros");
|
||||
arguments.push_back(outpath);
|
||||
|
||||
@@ -134,7 +134,7 @@ static HeaderPaths dumpHeaderPaths(const FilePath &compiler, const Core::Id lang
|
||||
QStringList arguments;
|
||||
arguments.push_back(fakeIn.fileName());
|
||||
if (languageId == ProjectExplorer::Constants::CXX_LANGUAGE_ID)
|
||||
arguments.push_back("--ec++");
|
||||
arguments.push_back("--c++");
|
||||
arguments.push_back("--preinclude");
|
||||
arguments.push_back(".");
|
||||
|
||||
|
Reference in New Issue
Block a user