GCC: Set LANG=C

Set LANG=C when building with GCC. This can be overridden in the
environment section of the project build settings.

This change should make sure that Qt Creator is able to properly
parse build issues.

Task-number: QTCREATORBUG-4011
Change-Id: Ibff57feff7945fc7e03acca3a86323b63c9d66ae
Reviewed-on: http://codereview.qt.nokia.com/3193
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Tobias Hunger
2011-08-18 13:43:36 +00:00
parent e8e27210eb
commit 450142b97d

View File

@@ -369,6 +369,7 @@ void GccToolChain::addToEnvironment(Utils::Environment &env) const
{ {
if (!m_compilerPath.isEmpty()) if (!m_compilerPath.isEmpty())
env.prependOrSetPath(QFileInfo(m_compilerPath).absolutePath()); env.prependOrSetPath(QFileInfo(m_compilerPath).absolutePath());
env.set(QLatin1String("LANG"), QLatin1String("C"));
} }
void GccToolChain::setDebuggerCommand(const QString &d) void GccToolChain::setDebuggerCommand(const QString &d)