Skip to content

--ios_multi_cpus defaults to x86_64 on M1 Macs #14284

@brentleyjones

Description

@brentleyjones

Description of the problem / feature request:

--ios_multi_cpus should default to sim_arm64 on M1 Macs, but still defaults to x86_64.

Feature requests: what underlying problem are you trying to solve with this feature?

M1 Mac users shouldn't have to override --ios_multi_cpus to get the proper default.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Build an ios_application target on an M1 Mac, see that the architecture is for the x86_64 simulator.

I think that this might be the issue:

def _ios_cpu_from_cpu(cpu):
if cpu.startswith(IOS_CPU_PREFIX):
return cpu[len(IOS_CPU_PREFIX):]
return DEFAULT_IOS_CPU

d7628e1 changed the default in one place already.

What operating system are you running Bazel on?

macOS 11.6.1 (arm64)

What's the output of bazel info release?

release 6.0.0-pre.20211101.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions