fix specdir()

get the actual spec path directly from the project - the specs in Option
are not necessarily resolved.

Change-Id: Ia2bf2199c5269aa5b5a9d4c38de36171f25d448b
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
Oswald Buddenhagen 2012-06-26 15:36:39 +02:00
parent caa2263051
commit 4b637bf1f0
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);