bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.21k stars 4.06k forks source link

add support for `arm64` architecture for watchOS devices (Xcode 14) #16182

Closed aleksandergrzyb closed 10 months ago

aleksandergrzyb commented 2 years ago

Description of the feature request:

Xcode 14 adds arm64 architecture for watchOS devices:

Screenshot 2022-08-29 at 12 33 42

Currently Bazel only supports armv7k and arm64_32.

When you would like to build for watchOS device using arm64 architecture (watchOS_arm64) currently it will get incorrectly mapped to watchOS simulator which already supports arm64 architecture.

I've already submitted PR (#16181) with proposed changes:

What underlying problem are you trying to solve with this feature?

I would like to build in Xcode 14 for watchOS devices with arm64 architecture.

Which operating system are you running Bazel on?

macOS Monterey 12.5.1

What is the output of bazel info release?

release 5.3.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

keith commented 10 months ago

This CPU was added in https://github.com/bazelbuild/bazel/commit/ce611646969cfe72ae5e22083708684eae11e478 but I just submitted rules support to cover it https://github.com/bazelbuild/apple_support/pull/289 https://github.com/bazelbuild/rules_apple/pull/2342

if you still see issues with those please file an issue!