From b26ebcae70008e8b620837a2eb2f82eb6b85ba21 Mon Sep 17 00:00:00 2001 From: Mikhail Zinov Date: Mon, 7 Oct 2024 22:02:02 +0900 Subject: [PATCH] drop selection --- apple/internal/platform_support.bzl | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/apple/internal/platform_support.bzl b/apple/internal/platform_support.bzl index 54d65efb5c..3edd5253e3 100644 --- a/apple/internal/platform_support.bzl +++ b/apple/internal/platform_support.bzl @@ -102,9 +102,19 @@ def _platform_prerequisites( A struct representing the collected platform information. """ platform_type_attr = getattr(apple_common.platform_type, platform_type_string) - platform = apple_fragment.multi_arch_platform(platform_type_attr) - - if environment == TARGET_ENVIROMENT.simulator: + platform = apple_common.platform.macos + if environment == TARGET_ENVIROMENT.device: + if platform_type_attr == apple_common.platform_type.ios: + platform = apple_common.platform.ios_device + elif platform_type_attr == apple_common.platform_type.tvos: + platform = apple_common.platform.tvos_device + elif platform_type_attr == apple_common.platform_type.visionos: + platform = apple_common.platform.visionos_device + elif platform_type_attr == apple_common.platform_type.watchos: + platform = apple_common.platform.watchos_device + else: + platform = apple_common.platform.macos + elif environment == TARGET_ENVIROMENT.simulator: if platform_type_attr == apple_common.platform_type.ios: platform = apple_common.platform.ios_simulator elif platform_type_attr == apple_common.platform_type.tvos: