forked from qt-creator/qt-creator
Fix a crash with cmake and no toolchains configured
Task-number: QTCREATORBUG-6252 Change-Id: I8b7237c23cd70fe8dd20724ffb3ebdef18f5bf13 Reviewed-on: http://codereview.qt-project.org/6320 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
@@ -142,7 +142,10 @@ bool MakeStep::init()
|
||||
pp->setMacroExpander(bc->macroExpander());
|
||||
pp->setEnvironment(bc->environment());
|
||||
pp->setWorkingDirectory(bc->buildDirectory());
|
||||
pp->setCommand(bc->toolChain()->makeCommand());
|
||||
if (bc->toolChain())
|
||||
pp->setCommand(bc->toolChain()->makeCommand());
|
||||
else
|
||||
pp->setCommand(QLatin1String("make"));
|
||||
pp->setArguments(arguments);
|
||||
|
||||
setOutputParser(new ProjectExplorer::GnuMakeParser());
|
||||
|
||||
Reference in New Issue
Block a user