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 138f114a912bfb..f15a79c4e26674 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 @@ -321,6 +321,16 @@ public class AppleCommandLineOptions extends FragmentOptions { help = "Comma-separated list of architectures for which to build Apple macOS binaries.") public List macosCpus; + @Option( + name = "host_macos_cpus", + allowMultiple = true, + converter = CommaSeparatedOptionListConverter.class, + defaultValue = "null", + documentationCategory = OptionDocumentationCategory.OUTPUT_PARAMETERS, + effectTags = {OptionEffectTag.LOSES_INCREMENTAL_STATE, OptionEffectTag.LOADING_AND_ANALYSIS, OptionEffectTag.AFFECTS_OUTPUTS}, + help = "Comma-separated list of architectures for which to build host Apple macOS binaries.") + public List hostMacosCpus; + @Option( name = "catalyst_cpus", allowMultiple = true, @@ -483,6 +493,7 @@ public FragmentOptions getHost() { // Preseve Xcode selection preferences so that the same Xcode version is used throughout the // build. host.preferMutualXcode = preferMutualXcode; + host.macosCpus = hostMacosCpus; return host; }