diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index f187190ac7c..ca226551714 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -3073,8 +3073,7 @@ QString MakefileGenerator::specdir() { if (spec.isEmpty()) - spec = fileFixify(project->isHostBuild() - ? Option::mkfile::qmakespec : Option::mkfile::xqmakespec); + spec = fileFixify(project->specDir()); return spec; } diff --git a/qmake/project.h b/qmake/project.h index 0e1ab7d870b..8314c39321f 100644 --- a/qmake/project.h +++ b/qmake/project.h @@ -136,6 +136,7 @@ public: QString projectFile(); QString confFile() const { return conffile; } QString cacheFile() const { return cachefile; } + QString specDir() const { return real_spec; } inline QMakeProperty *properties() { return prop; } bool doProjectTest(QString str, QHash &place);