aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2018-11-01 22:41:52 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2018-11-05 20:46:15 +0000
commit932d25082da2965c55a13785cca848692d9c8b9b (patch)
treeb88abb7541936ea85b2507ccae54cca56e319ed3 /share
parent7dab0863ed58646e356f48bc5ab5e0a3353a74ed (diff)
Fix detecting path to the MacOSX.platform
It was incorrectly detected by appending OS suffix which wrong as there is no OSX Simulator Change-Id: I19e8b06f51e65a897eae3cc018e994ed696b1d7e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qbs/imports/qbs/DarwinTools/darwin-tools.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/qbs/imports/qbs/DarwinTools/darwin-tools.js b/share/qbs/imports/qbs/DarwinTools/darwin-tools.js
index 95e8dab25..01aa41ddf 100644
--- a/share/qbs/imports/qbs/DarwinTools/darwin-tools.js
+++ b/share/qbs/imports/qbs/DarwinTools/darwin-tools.js
@@ -98,8 +98,11 @@ function applePlatformDirectoryName(targetOSList, platformType, version, throwOn
};
for (var key in _platformMap) {
- if (targetOSList.contains(key))
- return _platformMap[key] + (suffixMap[platformType] || "") + (version || "");
+ if (targetOSList.contains(key)) {
+ // there are no MacOSXOS or MacOSXSimulator platforms
+ var suffix = (key !== "macos") ? (suffixMap[platformType] || "") : "";
+ return _platformMap[key] + suffix + (version || "");
+ }
}
if (throwOnError || throwOnError === undefined)