Make sure we can compile the debugging help for maemo.

This boils down to the same problem as other calls to qmake, if we don't
pass the target mode, qmake will prepend the current platform as target.
Reviewed-by: dt
This commit is contained in:
kh1
2010-05-21 14:43:18 +02:00
parent c3bab51991
commit e9d1841552
3 changed files with 11 additions and 15 deletions

View File

@@ -1657,8 +1657,11 @@ QString QtVersion::buildDebuggingHelperLibrary()
tc->addToEnvironment(env);
QString output;
QString directory = DebuggingHelperLibrary::copyDebuggingHelperLibrary(qtInstallData, &output);
if (!directory.isEmpty())
output += DebuggingHelperLibrary::buildDebuggingHelperLibrary(directory, tc->makeCommand(), qmakeCommand(), mkspec(), env);
if (!directory.isEmpty()) {
output += DebuggingHelperLibrary::buildDebuggingHelperLibrary(directory, tc->makeCommand(),
qmakeCommand(), mkspec(), env,
(tc->type() == ToolChain::GCC_MAEMO ? QLatin1String("-unix") : QLatin1String("")));
}
m_hasDebuggingHelper = !debuggingHelperLibrary().isEmpty();
return output;
}