Open Bug 1648497 Opened 4 years ago Updated 5 months ago

Enable building Firefox on AArch64 macOS

Categories

(Firefox Build System :: General, enhancement)

ARM64
macOS
enhancement

Tracking

(Not tracked)

People

(Reporter: gcp, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

No description provided.

On the build system side, I think updating config.sub when support for arm64 mac is added would be enough.

I just checked https://git.savannah.gnu.org/gitweb/?p=config.git, and it hasn't been updated yet.

Previous comments from Mike (sorry if some of these are already superseded):

Ability to compile with any updated Mac SDK (if our current one doesn’t know about ARM64)

It doesn't. Only 11 SDK from Xcode 12 beta does, and it requires macOS 11 to link anything at all (ld insists that system dylibs must be fat arm64-x86_64, although it technically doesn't need to (cctools-port doesn't look like to care, so it's presumably only a problem for non-cross-compiles))

Clang/LLVM ARM64 Darwin support

This seems to be supported already (at least in clang 10, haven't checked clang 9). Albeit, arm64-apple-darwin/arm64-apple-macos is supported, but arm64e variants are not.

Rust ARM64 Darwin support (blocked on the Clang/LLVM support)

Presumably only needs to know about the target, cf. comment about clang.
Related: https://github.com/rust-lang/rust/issues/73628

Cross-build tools (e.g. the linker, various binary tools, etc.)

It seems everything might be okay, except for the linker not supporting the new tbd format in the 11 SDK. https://github.com/tpoechtrager/apple-libtapi/issues/13 (which is true for using that SDK at all, even for x86-64)

Depends on: 1658053
Depends on: 1679363
Depends on: 1696077
Depends on: 1696091
Depends on: 1696094
Depends on: 1697098
Depends on: 1697879
Depends on: 1706545
Depends on: 1706557
You need to log in before you can comment on or make changes to this bug.