diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-04-23 12:06:59 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-06-27 14:35:26 +0200 |
commit | 602ef59e855ac86ea975aa40c533c51685c36bb0 (patch) | |
tree | 443c714d51317f13746e1b9d5b8d00b696cadbdd /qmake/option.cpp | |
parent | 95e710640084ab5880736ba903d31818878beaa3 (diff) |
make a bunch of invariant variables non-magic
instead of resolving them on-demand, just initialize the value hash
with them. less magic and faster.
Change-Id: I28cb6c21ae6ae60a33734f62acdef0794420ba8f
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'qmake/option.cpp')
-rw-r--r-- | qmake/option.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp index ec4c3546bd..d2ab2514d6 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -432,6 +432,14 @@ Option::init(int argc, char **argv) } if(!Option::qmake_abslocation.isNull()) Option::qmake_abslocation = QDir::cleanPath(Option::qmake_abslocation); + else // This is rather unlikely to ever happen on a modern system ... + Option::qmake_abslocation = QLibraryInfo::rawLocation(QLibraryInfo::HostBinariesPath, + QLibraryInfo::EffectivePaths) + +#ifdef Q_OS_WIN + "/qmake.exe"; +#else + "/qmake"; +#endif } else { Option::qmake_mode = Option::QMAKE_GENERATE_MAKEFILE; } |