From a62f78f94f1efa7936f44e9a98813148c6489aa8 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 4 Aug 2021 16:25:28 -0700 Subject: [PATCH] Added --apple_platforms command line argument to Bazel. Not currently used by any rules. This will require forthcoming changes to the Apple split transition before it can begin to be useful. PiperOrigin-RevId: 388809149 --- .../lib/rules/apple/AppleCommandLineOptions.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java b/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java index 03655cfc8bc8ed..a22cec6465d092 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java @@ -384,6 +384,17 @@ public class AppleCommandLineOptions extends FragmentOptions { + " option may be provided multiple times.") public List> appleBitcodeMode; + // TODO(b/180572694): Modify the Apple split transition to split the --apple_platforms out into a + // single --platform during the transition instead of splitting on the --*_cpus flags. + @Option( + name = "apple_platforms", + converter = CommaSeparatedOptionListConverter.class, + defaultValue = "null", + documentationCategory = OptionDocumentationCategory.UNDOCUMENTED, + effectTags = {OptionEffectTag.LOSES_INCREMENTAL_STATE, OptionEffectTag.LOADING_AND_ANALYSIS}, + help = "Comma-separated list of platforms to use when building Apple binaries.") + public List applePlatforms; + /** Returns whether the minimum OS version is explicitly set for the current platform. */ public DottedVersion getMinimumOsVersion() { DottedVersion.Option option;