forked from qt-creator/qt-creator
Utils: More explicit host os use to make it stand out
Quite a few of the uses are actually wrong, but are better visible now and therefore more likely to be fixed. Change-Id: Ia51f7d6eb1b2d3a9c9f73d67dabacfd227c44b15 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -245,7 +245,7 @@ QList<CMakeBuildTarget> generateBuildTargets(const PreprocessedData &input,
|
||||
continue;
|
||||
|
||||
// CMake sometimes mixes several shell-escaped pieces into one fragment. Disentangle that again:
|
||||
const QStringList parts = ProcessArgs::splitArgs(f.fragment);
|
||||
const QStringList parts = ProcessArgs::splitArgs(f.fragment, HostOsInfo::hostOs());
|
||||
for (QString part : parts) {
|
||||
// Library search paths that are added with target_link_directories are added as
|
||||
// -LIBPATH:... (Windows/MSVC), or
|
||||
@@ -306,7 +306,7 @@ static QStringList splitFragments(const QStringList &fragments)
|
||||
{
|
||||
QStringList result;
|
||||
for (const QString &f : fragments) {
|
||||
result += ProcessArgs::splitArgs(f);
|
||||
result += ProcessArgs::splitArgs(f, HostOsInfo::hostOs());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user