Skip to content

Commit

Permalink
Added --apple_platforms command line argument to Bazel.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Googler authored and copybara-github committed Aug 4, 2021
1 parent 652d1cc commit a62f78f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,17 @@ public class AppleCommandLineOptions extends FragmentOptions {
+ " option may be provided multiple times.")
public List<Map.Entry<ApplePlatform.PlatformType, AppleBitcodeMode>> 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<String> applePlatforms;

/** Returns whether the minimum OS version is explicitly set for the current platform. */
public DottedVersion getMinimumOsVersion() {
DottedVersion.Option option;
Expand Down

0 comments on commit a62f78f

Please sign in to comment.