Utils: Do not blindly assume qmake* is an executable

Change-Id: Iec444d2883536a0140197af9e8b90e3050d8fc5b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Christian Stenger
2018-02-06 15:37:53 +01:00
parent 4757370fad
commit d5e666b012

View File

@@ -155,7 +155,7 @@ QStringList BuildableHelperLibrary::possibleQMakeCommands()
// On Unix some distributions renamed qmake with a postfix to avoid clashes // On Unix some distributions renamed qmake with a postfix to avoid clashes
// On OS X, Qt 4 binary packages also has renamed qmake. There are also symbolic links that are // On OS X, Qt 4 binary packages also has renamed qmake. There are also symbolic links that are
// named "qmake", but the file dialog always checks against resolved links (native Cocoa issue) // named "qmake", but the file dialog always checks against resolved links (native Cocoa issue)
return QStringList(QLatin1String("qmake*")); return QStringList(HostOsInfo::withExecutableSuffix("qmake*"));
} }
// Copy helper source files to a target directory, replacing older files. // Copy helper source files to a target directory, replacing older files.