forked from qt-creator/qt-creator
Fix build issues being empty for non-qmake projects
In qmake based projects we override LC_ALL to make sure the parsers do not fail to extract build issues from the compiler output. Do the same for the other build systems. Task-number: QTCREATORBUG-5097 Change-Id: I75830c362a736df42a0500c889c3c42e42b82047 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -186,7 +186,11 @@ bool MakeStep::init()
|
||||
|
||||
ProcessParameters *pp = processParameters();
|
||||
pp->setMacroExpander(bc->macroExpander());
|
||||
pp->setEnvironment(bc->environment());
|
||||
Utils::Environment env = bc->environment();
|
||||
// Force output to english for the parsers. Do this here and not in the toolchain's
|
||||
// addToEnvironment() to not screw up the users run environment.
|
||||
env.set(QLatin1String("LC_ALL"), QLatin1String("C"));
|
||||
pp->setEnvironment(env);
|
||||
pp->setWorkingDirectory(bc->buildDirectory());
|
||||
pp->setCommand(tc ? tc->makeCommand(bc->environment()) : QLatin1String("make"));
|
||||
pp->setArguments(arguments);
|
||||
|
||||
Reference in New Issue
Block a user