forked from qt-creator/qt-creator
Readding MakeSteps to the clean step list should set them up correctly
That is set the argument to "clean" and ensure that the return value is ignored. Change-Id: I1f15ad464e6f4608d7eb698365846a4c765f1d22 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-by: Andre Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include <projectexplorer/toolchain.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/gnumakeparser.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <coreplugin/variablemanager.h>
|
||||
#include <utils/stringutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -323,7 +324,12 @@ ProjectExplorer::BuildStep *GenericMakeStepFactory::create(ProjectExplorer::Buil
|
||||
{
|
||||
if (!canCreate(parent, id))
|
||||
return 0;
|
||||
return new GenericMakeStep(parent);
|
||||
GenericMakeStep *step = new GenericMakeStep(parent);
|
||||
if (parent->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN) {
|
||||
step->setClean(true);
|
||||
step->setBuildTarget("clean", /* on = */ true);
|
||||
}
|
||||
return step;
|
||||
}
|
||||
|
||||
bool GenericMakeStepFactory::canClone(ProjectExplorer::BuildStepList *parent,
|
||||
|
||||
Reference in New Issue
Block a user