diff options
author | kh1 <qt-info@nokia.com> | 2010-05-21 14:43:18 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2010-05-21 14:43:18 +0200 |
commit | e9d184155232805d4c82eb164768282fc61fca38 (patch) | |
tree | 78e5068c6142d6b62253412483998a1c1bde1866 /src/plugins/projectexplorer/debugginghelper.cpp | |
parent | c3bab519914449a203353031f658e9e73aa8f424 (diff) | |
download | qt-creator-e9d184155232805d4c82eb164768282fc61fca38.tar.gz |
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
Diffstat (limited to 'src/plugins/projectexplorer/debugginghelper.cpp')
-rw-r--r-- | src/plugins/projectexplorer/debugginghelper.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/plugins/projectexplorer/debugginghelper.cpp b/src/plugins/projectexplorer/debugginghelper.cpp index ef1f9a9363..495996e450 100644 --- a/src/plugins/projectexplorer/debugginghelper.cpp +++ b/src/plugins/projectexplorer/debugginghelper.cpp @@ -130,15 +130,6 @@ QString DebuggingHelperLibrary::debuggingHelperLibraryByInstallData(const QStrin return QString(); } -QString DebuggingHelperLibrary::buildDebuggingHelperLibrary(const QString &qmakePath, const QString &make, const Environment &env) -{ - QString errorMessage; - const QString directory = copyDebuggingHelperLibrary(qtInstallDataDir(qmakePath), &errorMessage); - if (directory.isEmpty()) - return errorMessage; - return buildDebuggingHelperLibrary(directory, make, qmakePath, QString(), env); -} - // Copy helper source files to a target directory, replacing older files. static bool copyDebuggingHelperFiles(const QStringList &files, const QString &targetDirectory, @@ -192,7 +183,9 @@ QString DebuggingHelperLibrary::copyDebuggingHelperLibrary(const QString &qtInst return QString(); } -QString DebuggingHelperLibrary::buildDebuggingHelperLibrary(const QString &directory, const QString &makeCommand, const QString &qmakeCommand, const QString &mkspec, const Environment &env) +QString DebuggingHelperLibrary::buildDebuggingHelperLibrary(const QString &directory, const QString &makeCommand, + const QString &qmakeCommand, const QString &mkspec, + const Environment &env, const QString &targetMode) { QString output; const QChar newline = QLatin1Char('\n'); @@ -222,7 +215,7 @@ QString DebuggingHelperLibrary::buildDebuggingHelperLibrary(const QString &direc output += QCoreApplication::translate("ProjectExplorer::DebuggingHelperLibrary", "Running %1 ...\n").arg(qmakeCommand); QStringList makeArgs; - makeArgs << QLatin1String("-spec")<< (mkspec.isEmpty() ? QString(QLatin1String("default")) : mkspec) << QLatin1String("gdbmacros.pro"); + makeArgs << targetMode << QLatin1String("-spec") << (mkspec.isEmpty() ? QString(QLatin1String("default")) : mkspec) << QLatin1String("gdbmacros.pro"); proc.start(qmakeCommand, makeArgs); proc.waitForFinished(); |