File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ public final class BuiltinMacros {
120120 public static let HOST_PLATFORM = BuiltinMacros . declareStringMacro ( " HOST_PLATFORM " )
121121 public static let IOS_UNZIPPERED_TWIN_PREFIX_PATH = BuiltinMacros . declareStringMacro ( " IOS_UNZIPPERED_TWIN_PREFIX_PATH " )
122122 public static let IPHONEOS_DEPLOYMENT_TARGET = BuiltinMacros . declareStringMacro ( " IPHONEOS_DEPLOYMENT_TARGET " )
123+ public static let MACOS_UNZIPPERED_TWIN_PREFIX_PATH = BuiltinMacros . declareStringMacro ( " MACOS_UNZIPPERED_TWIN_PREFIX_PATH " )
123124 public static let MACOSX_DEPLOYMENT_TARGET = BuiltinMacros . declareStringMacro ( " MACOSX_DEPLOYMENT_TARGET " )
124125 public static let NATIVE_ARCH = BuiltinMacros . declareStringMacro ( " NATIVE_ARCH " )
125126 public static let NATIVE_ARCH_32_BIT = BuiltinMacros . declareStringMacro ( " NATIVE_ARCH_32_BIT " )
@@ -1993,6 +1994,7 @@ public final class BuiltinMacros {
19931994 MACOS_CREATOR_ARG,
19941995 MACOS_TYPE,
19951996 MACOS_TYPE_ARG,
1997+ MACOS_UNZIPPERED_TWIN_PREFIX_PATH,
19961998 MAC_OS_X_PRODUCT_BUILD_VERSION,
19971999 MAC_OS_X_VERSION_ACTUAL,
19982000 MAC_OS_X_VERSION_MAJOR,
Original file line number Diff line number Diff line change @@ -2585,9 +2585,10 @@ private class SettingsBuilder: ProjectMatchLookup {
25852585 sdkTable. pushContentsOf ( defaultSettingsTable)
25862586 }
25872587
2588- // Set IOS_UNZIPPERED_TWIN_PREFIX_PATH to the Mac Catalyst variant's prefix path, even for the macOS variant.
2589- if let macCatalystVariant = sdk. variant ( for: MacCatalystInfo . sdkVariantName) {
2590- sdkTable. push ( BuiltinMacros . IOS_UNZIPPERED_TWIN_PREFIX_PATH, literal: macCatalystVariant. systemPrefix)
2588+ // Set twin prefix paths in macOS for Mac Catalyst.
2589+ if sdk. canonicalNameComponents? . basename == " macosx " {
2590+ sdkTable. push ( BuiltinMacros . MACOS_UNZIPPERED_TWIN_PREFIX_PATH, literal: " " )
2591+ sdkTable. push ( BuiltinMacros . IOS_UNZIPPERED_TWIN_PREFIX_PATH, literal: " /System/iOSSupport " )
25912592 }
25922593
25932594 // Add the settings provided by the SDK variant, if there is one.
You can’t perform that action at this time.
0 commit comments