forked from qt-creator/qt-creator
AndroidConfig::bestNdkPlatformMatch: Ensure that api level 9 is minimum
Change-Id: I527c7ce13b01f441183940a5e0ea2baec64c04e3 Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
committed by
Daniel Teske
parent
381b04fa04
commit
384d5d7577
@@ -840,6 +840,7 @@ QString AndroidConfig::bestNdkPlatformMatch(const QString &targetAPI) const
|
||||
{
|
||||
updateNdkInformation();
|
||||
int target = targetAPI.mid(targetAPI.lastIndexOf(QLatin1Char('-')) + 1).toInt();
|
||||
target = std::max(9, target);
|
||||
foreach (int apiLevel, m_availableNdkPlatforms) {
|
||||
if (apiLevel <= target)
|
||||
return QString::fromLatin1("android-%1").arg(apiLevel);
|
||||
|
Reference in New Issue
Block a user