Skip to content

Get rid of HADRIAN_SETTINGS#149

Closed
hasufell wants to merge 2 commits into
stable-ghc-9.14from
remove-hadrian
Closed

Get rid of HADRIAN_SETTINGS#149
hasufell wants to merge 2 commits into
stable-ghc-9.14from
remove-hadrian

Conversation

@hasufell
Copy link
Copy Markdown
Member

No description provided.

Apple's LLVM toolchain uses `arm64` as the canonical architecture name
for AArch64 on Apple platforms, while GNU config.sub normalises to
`aarch64`. This mismatch causes `--target=aarch64-apple-darwin` to be
passed to clang, which conflicts with toolchain wrappers (e.g. nix
cc-wrapper) that expect `arm64-apple-darwin`.

The result is thousands of test failures on aarch64-darwin because the
cc-wrapper warning pollutes compiler output and the target flag
interaction breaks compilation.

Fix by adding normaliseLlvmTarget that rewrites `aarch64-apple-*` to
`arm64-apple-*` for the LLVM target triple, matching Apple conventions
and the existing llvm-targets file which already uses arm64-apple-darwin.
@angerman
Copy link
Copy Markdown

Closing this PR — the HADRIAN_SETTINGS removal has already been merged to stable-ghc-9.14 separately.

The remaining NormaliseTriple fix (aarch64 → arm64 for Apple platforms) has been split out into #156.

@angerman angerman closed this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants