From 450142b97d69e25a57b9cc284feddf9c3d8e4ab7 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Thu, 18 Aug 2011 13:43:36 +0000 Subject: [PATCH] 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> --- src/plugins/projectexplorer/gcctoolchain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 9588d29ea51..c46ad267220 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -369,6 +369,7 @@ void GccToolChain::addToEnvironment(Utils::Environment &env) const { if (!m_compilerPath.isEmpty()) env.prependOrSetPath(QFileInfo(m_compilerPath).absolutePath()); + env.set(QLatin1String("LANG"), QLatin1String("C")); } void GccToolChain::setDebuggerCommand(const QString &d) -- GitLab