Skip to content

Commit b26ebca

Browse files
committed
drop selection
1 parent 2592479 commit b26ebca

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

apple/internal/platform_support.bzl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,19 @@ def _platform_prerequisites(
102102
A struct representing the collected platform information.
103103
"""
104104
platform_type_attr = getattr(apple_common.platform_type, platform_type_string)
105-
platform = apple_fragment.multi_arch_platform(platform_type_attr)
106-
107-
if environment == TARGET_ENVIROMENT.simulator:
105+
platform = apple_common.platform.macos
106+
if environment == TARGET_ENVIROMENT.device:
107+
if platform_type_attr == apple_common.platform_type.ios:
108+
platform = apple_common.platform.ios_device
109+
elif platform_type_attr == apple_common.platform_type.tvos:
110+
platform = apple_common.platform.tvos_device
111+
elif platform_type_attr == apple_common.platform_type.visionos:
112+
platform = apple_common.platform.visionos_device
113+
elif platform_type_attr == apple_common.platform_type.watchos:
114+
platform = apple_common.platform.watchos_device
115+
else:
116+
platform = apple_common.platform.macos
117+
elif environment == TARGET_ENVIROMENT.simulator:
108118
if platform_type_attr == apple_common.platform_type.ios:
109119
platform = apple_common.platform.ios_simulator
110120
elif platform_type_attr == apple_common.platform_type.tvos:

0 commit comments

Comments
 (0)