aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-06-09 10:32:44 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2023-06-09 10:32:44 +0200
commitf8335f02f263d69d81d2557c0c4f87b7148cbe9d (patch)
tree6832af025abb02ab7961539eb82442587a66fdb0 /share
parent8d3df7e35c48f5e0696e0efc527e43acbaedc92c (diff)
parent134d6b6666c1d121b6134a02c4766576705700aa (diff)
Merge 2.0 into 2.1
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/xcode/xcode.js2
-rw-r--r--share/qbs/modules/xcode/xcode.qbs3
2 files changed, 3 insertions, 2 deletions
diff --git a/share/qbs/modules/xcode/xcode.js b/share/qbs/modules/xcode/xcode.js
index 6bd37ad10..a931273f2 100644
--- a/share/qbs/modules/xcode/xcode.js
+++ b/share/qbs/modules/xcode/xcode.js
@@ -112,7 +112,7 @@ function sdkInfoList(sdksPath) {
if (!sdks[i].match(/[0-9]+/))
continue;
- if (sdks[i].startsWith("DriverKit"))
+ if (sdks[i].startsWith("DriverKit") || sdks[i].startsWith("AssetRuntime"))
continue;
var settingsPlist = FileInfo.joinPaths(sdksPath, sdks[i], "SDKSettings.plist");
diff --git a/share/qbs/modules/xcode/xcode.qbs b/share/qbs/modules/xcode/xcode.qbs
index 941b8d395..c052da44c 100644
--- a/share/qbs/modules/xcode/xcode.qbs
+++ b/share/qbs/modules/xcode/xcode.qbs
@@ -134,6 +134,7 @@ Module {
readonly property var _sdkSettings: {
if (_availableSdks) {
+ // see 'sdk' property doc to understand why this loop is needed
for (var i in _availableSdks) {
if (_availableSdks[i]["Version"] === sdk)
return _availableSdks[i];
@@ -141,7 +142,7 @@ Module {
return _availableSdks[i];
}
- // Latest SDK available for the platform
+ // Latest SDK available for the platform (default case)
if (DarwinTools.applePlatformName(qbs.targetOS, platformType) === sdk)
return _latestSdk;
}