forked from qt-creator/qt-creator
Use HostOsInfo::withExecutableSuffix instead of if/else
Let's use our Utils. Change-Id: I8cfbce55d2b41e42e86d050433df2cfd20cebe1b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -99,11 +99,8 @@ void GenerateResource::generateMenuEntry()
|
||||
temp.close();
|
||||
|
||||
auto rccBinary = QtSupport::QtKitAspect::qtVersion(currentProject->activeTarget()->kit())->hostBinPath();
|
||||
#ifdef Q_OS_WIN
|
||||
rccBinary = rccBinary.pathAppended("rcc.exe");
|
||||
#else
|
||||
rccBinary = rccBinary.pathAppended("rcc");
|
||||
#endif
|
||||
rccBinary = rccBinary.pathAppended(Utils::HostOsInfo::withExecutableSuffix("rcc"));
|
||||
|
||||
QProcess rccProcess;
|
||||
rccProcess.setProgram(rccBinary.toString());
|
||||
rccProcess.setWorkingDirectory(projectPath);
|
||||
|
||||
Reference in New Issue
Block a user