summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/makefile.cpp3
-rw-r--r--qmake/project.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index f187190ac7..ca22655171 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 0e1ab7d870..8314c39321 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<QString, QStringList> &place);