summaryrefslogtreecommitdiffstats
path: root/qmake/generators/mac
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-03-09 14:25:54 +0100
committerAndy Shaw <andy.shaw@qt.io>2018-03-17 23:14:23 +0000
commit44137dc65ab1121fc360f6f006b7515648f0bae3 (patch)
treeba8d2f463dd07f1c349060433652a0a835f0e907 /qmake/generators/mac
parente4e87a2ece1e0c9901514fea094f31863b64b570 (diff)
XCode: Fix the output paths for extra compilers with fileFixify()
This ensures that the generated XCode project can correctly find any files that are referenced via a path containing "..". Task-number: QTBUG-35131 Change-Id: I049bc2279b4c515a82acd61142d25b8c240e8f6e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'qmake/generators/mac')
-rw-r--r--qmake/generators/mac/pbuilder_pbx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmake/generators/mac/pbuilder_pbx.cpp b/qmake/generators/mac/pbuilder_pbx.cpp
index db7a1b2714..3b1f904253 100644
--- a/qmake/generators/mac/pbuilder_pbx.cpp
+++ b/qmake/generators/mac/pbuilder_pbx.cpp
@@ -779,8 +779,9 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
mkt << "\\\n\t";
++added;
const QString file_name = fileFixify(fn, FileFixifyFromOutdir);
+ const QString tmpOut = fileFixify(tmp_out.first().toQString(), FileFixifyFromOutdir);
mkt << ' ' << escapeDependencyPath(Option::fixPathToTargetOS(
- replaceExtraCompilerVariables(tmp_out.first().toQString(), file_name, QString(), NoShell)));
+ replaceExtraCompilerVariables(tmpOut, file_name, QString(), NoShell)));
}
}
}