aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/qtprofilesetup/qtprofilesetup.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/qtprofilesetup/qtprofilesetup.cpp b/src/lib/qtprofilesetup/qtprofilesetup.cpp
index f9feb3a58..9d77a457f 100644
--- a/src/lib/qtprofilesetup/qtprofilesetup.cpp
+++ b/src/lib/qtprofilesetup/qtprofilesetup.cpp
@@ -760,6 +760,9 @@ void doSetupQtProfile(const QString &profileName, Settings *settings,
QString qbsTargetPlatformFromQtMkspec(const QString &mkspec)
{
+ int idx = mkspec.lastIndexOf(QLatin1Char('/'));
+ if (idx != -1)
+ return qbsTargetPlatformFromQtMkspec(mkspec.mid(idx + 1));
if (mkspec.startsWith(QLatin1String("aix-")))
return QLatin1String("aix");
if (mkspec.startsWith(QLatin1String("android-")))