Commit e0b2d9e2 authored by Daniel Teske's avatar Daniel Teske
Browse files

Qt4Project: Fix building of subprojects for debug_and_release

Use the right makefile.

Task-number: QTCREATORBUG-8793

Change-Id: Ibd836602b465342ccc489e48dc253160e2678b1f
Reviewed-by: default avatarTobias Hunger <>
parent 4fba48e5
......@@ -196,7 +196,10 @@ bool MakeStep::init()
QString makefile = subNode->makefile();
if (makefile.isEmpty())
makefile = QLatin1String("Makefile");
if (subNode->isDebugAndRelease()) {
// Use Makefile.Debug and Makefile.Release
// for file builds, since the rules for that are
// only in those files.
if (subNode->isDebugAndRelease() && bc->fileNodeBuild()) {
if (bc->buildType() == Qt4BuildConfiguration::Debug)
makefile += QLatin1String(".Debug");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment