Skip to content

Commit a62f78f

Browse files
Googlercopybara-github
authored andcommitted
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
1 parent 652d1cc commit a62f78f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,17 @@ public class AppleCommandLineOptions extends FragmentOptions {
384384
+ " option may be provided multiple times.")
385385
public List<Map.Entry<ApplePlatform.PlatformType, AppleBitcodeMode>> appleBitcodeMode;
386386

387+
// TODO(b/180572694): Modify the Apple split transition to split the --apple_platforms out into a
388+
// single --platform during the transition instead of splitting on the --*_cpus flags.
389+
@Option(
390+
name = "apple_platforms",
391+
converter = CommaSeparatedOptionListConverter.class,
392+
defaultValue = "null",
393+
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
394+
effectTags = {OptionEffectTag.LOSES_INCREMENTAL_STATE, OptionEffectTag.LOADING_AND_ANALYSIS},
395+
help = "Comma-separated list of platforms to use when building Apple binaries.")
396+
public List<String> applePlatforms;
397+
387398
/** Returns whether the minimum OS version is explicitly set for the current platform. */
388399
public DottedVersion getMinimumOsVersion() {
389400
DottedVersion.Option option;

0 commit comments

Comments
 (0)