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;