forked from qt-creator/qt-creator
Android: Enable locating NDK's lldb-server on Windows hosts
For Windows, lldb-server on the local file system is not a QDir::Executable, but just a QDir::Files. Task-number: QTCREATORBUG-26281 Change-Id: I4eb91ad9bce62401a945c46a1d2f94b654f9eaa2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -195,7 +195,9 @@ static FilePath debugServer(bool useLldb, const Target *target)
|
|||||||
const QString abiNeedle = lldbServerArch2(preferredAbi);
|
const QString abiNeedle = lldbServerArch2(preferredAbi);
|
||||||
|
|
||||||
// The new, built-in LLDB.
|
// The new, built-in LLDB.
|
||||||
QDirIterator it(prebuilt.toString(), QDir::Files|QDir::Executable, QDirIterator::Subdirectories);
|
const QDir::Filters dirFilter = HostOsInfo::isWindowsHost() ? QDir::Files
|
||||||
|
: QDir::Files|QDir::Executable;
|
||||||
|
QDirIterator it(prebuilt.toString(), dirFilter, QDirIterator::Subdirectories);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
const QString filePath = it.filePath();
|
const QString filePath = it.filePath();
|
||||||
|
|||||||
Reference in New Issue
Block a user