Commit 31d67d06 authored by Tobias Hunger's avatar Tobias Hunger

GccToolChain: Shorten and move gccPredefinedMacroOptions

Code cosmetics: Shorten gccPredefinedMacroOptions and move it to
the method that is actually related to that functionality.

Change-Id: I8aae1fd89f58d798f5bec95f16c7b92c44546e4d
Reviewed-by: default avatarDaniel Teske <>
parent df10189d
......@@ -111,6 +111,11 @@ static QByteArray runGcc(const FileName &gcc, const QStringList &arguments, cons
return data;
static const QStringList gccPredefinedMacrosOptions()
return QStringList() << QLatin1String("-xc++") << QLatin1String("-E") << QLatin1String("-dM");
static QByteArray gccPredefinedMacros(const FileName &gcc, const QStringList &args, const QStringList &env)
QStringList arguments = args;
......@@ -208,16 +213,6 @@ static QList<Abi> guessGccAbi(const QString &m, const QByteArray &macros)
return abiList;
static QStringList gccPredefinedMacrosOptions()
QStringList gccOptions;
gccOptions << QLatin1String("-xc++")
<< QLatin1String("-E")
<< QLatin1String("-dM");
return gccOptions;
static QList<Abi> guessGccAbi(const FileName &path, const QStringList &env,
const QStringList &extraArgs = QStringList())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment