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:
Denis Shienkov
2019-07-03 16:56:01 +03:00
parent 9b0feb726e
commit 881f4d5f38

View File

@@ -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(".");