forked from qt-creator/qt-creator
Android: Fix the android include path
Task-number: QTCREATORBUG-20340 Change-Id: Ie1d7c15bf8b38b5141868149684e026ba9666630 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -116,7 +116,9 @@ static void addSystemHeaderPaths(QList<ProjectExplorer::HeaderPath> &paths,
|
|||||||
const Utils::FileName ndkPath = AndroidConfigurations::currentConfig().ndkLocation();
|
const Utils::FileName ndkPath = AndroidConfigurations::currentConfig().ndkLocation();
|
||||||
|
|
||||||
// Get short version (for example 4.9)
|
// Get short version (for example 4.9)
|
||||||
const QString clangVersion = version.left(version.lastIndexOf('.'));
|
auto versionNumber = QVersionNumber::fromString(version);
|
||||||
|
const QString clangVersion = QString("%1.%2")
|
||||||
|
.arg(versionNumber.majorVersion()).arg(versionNumber.minorVersion());
|
||||||
Utils::FileName stdcppPath = ndkPath;
|
Utils::FileName stdcppPath = ndkPath;
|
||||||
stdcppPath.appendPath("sources/cxx-stl/gnu-libstdc++/" + clangVersion);
|
stdcppPath.appendPath("sources/cxx-stl/gnu-libstdc++/" + clangVersion);
|
||||||
Utils::FileName includePath = stdcppPath;
|
Utils::FileName includePath = stdcppPath;
|
||||||
|
Reference in New Issue
Block a user