Skip to content

Commit 6f31244

Browse files
committed
drop selection
1 parent 2592479 commit 6f31244

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

apple/internal/platform_support.bzl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,19 @@ def _platform_prerequisites(
103103
"""
104104
platform_type_attr = getattr(apple_common.platform_type, platform_type_string)
105105
platform = apple_fragment.multi_arch_platform(platform_type_attr)
106-
107-
if environment == TARGET_ENVIROMENT.simulator:
106+
107+
if environment == TARGET_ENVIROMENT.device:
108+
if platform_type_attr == apple_common.platform_type.ios:
109+
platform = apple_common.platform.ios_device
110+
elif platform_type_attr == apple_common.platform_type.tvos:
111+
platform = apple_common.platform.tvos_device
112+
elif platform_type_attr == apple_common.platform_type.visionos:
113+
platform = apple_common.platform.visionos_device
114+
elif platform_type_attr == apple_common.platform_type.watchos:
115+
platform = apple_common.platform.watchos_device
116+
else:
117+
platform = apple_common.platform.macos
118+
elif environment == TARGET_ENVIROMENT.simulator:
108119
if platform_type_attr == apple_common.platform_type.ios:
109120
platform = apple_common.platform.ios_simulator
110121
elif platform_type_attr == apple_common.platform_type.tvos:

0 commit comments

Comments
 (0)