forked from qt-creator/qt-creator
Handle Qmake errors when running make in a qmake project
Qmake may be run by make, so make the makestep use the qmake parser in addition to the rest in qmake based projects. Change-Id: Ibdd3eb476d890d580a8417d691166c4dd33350cb Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
#include "makestep.h"
|
#include "makestep.h"
|
||||||
#include "ui_makestep.h"
|
#include "ui_makestep.h"
|
||||||
|
|
||||||
|
#include "qmakeparser.h"
|
||||||
#include "qt4project.h"
|
#include "qt4project.h"
|
||||||
#include "qt4nodes.h"
|
#include "qt4nodes.h"
|
||||||
#include "qt4buildconfiguration.h"
|
#include "qt4buildconfiguration.h"
|
||||||
@@ -254,6 +255,7 @@ bool MakeStep::init()
|
|||||||
pp->resolveAll();
|
pp->resolveAll();
|
||||||
|
|
||||||
setOutputParser(new ProjectExplorer::GnuMakeParser());
|
setOutputParser(new ProjectExplorer::GnuMakeParser());
|
||||||
|
appendOutputParser(new QMakeParser); // make may cause qmake to be run.
|
||||||
IOutputParser *parser = target()->kit()->createOutputParser();
|
IOutputParser *parser = target()->kit()->createOutputParser();
|
||||||
if (parser)
|
if (parser)
|
||||||
appendOutputParser(parser);
|
appendOutputParser(parser);
|
||||||
|
|||||||
Reference in New Issue
Block a user