Commit 4453554c authored by Tobias Hunger's avatar Tobias Hunger

GCC: detect compiler setting in C locale

Run detection of GCC compiler settings using the C locale. This
should fix detection of some settings in non english locales.

Task-number: QTCREATORBUG-5637
Change-Id: I3ea74ce5374fb03ea0cd43566ee302c635e02cd4
Reviewed-on: default avatarDaniel Teske <>
Reviewed-by: default avatarQt Sanity Bot <>
parent b407a51c
......@@ -70,7 +70,12 @@ static QByteArray runGcc(const QString &gcc, const QStringList &arguments, const
return QByteArray();
QProcess cpp;
// Force locale: This function is used only to detect settings inside the tool chain, so this is save.
QStringList environment(env);
cpp.start(gcc, arguments);
if (!cpp.waitForStarted()) {
qWarning("%s: Cannot start '%s': %s", Q_FUNC_INFO, qPrintable(gcc),
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