Skip to content

Mach-O: Set LC_BUILD_VERSION#13131

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
madsmtm:macho-build-version
Apr 20, 2026
Merged

Mach-O: Set LC_BUILD_VERSION#13131
alexcrichton merged 2 commits intobytecodealliance:mainfrom
madsmtm:macho-build-version

Conversation

@madsmtm
Copy link
Copy Markdown
Contributor

@madsmtm madsmtm commented Apr 17, 2026

Fixes #8730, the remaining linker warnings are now gone.

See also rust-lang/rustc_codegen_cranelift#1645 which passes the actual version (instead of just specifying 0.0.0).

@madsmtm madsmtm requested a review from a team as a code owner April 17, 2026 13:20
@madsmtm madsmtm requested review from alexcrichton and removed request for a team April 17, 2026 13:20
@alexcrichton
Copy link
Copy Markdown
Member

@bjorn3 would you be willing to review?

@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:area:aarch64 Issues related to AArch64 backend. cranelift:module labels Apr 17, 2026
@bjorn3
Copy link
Copy Markdown
Contributor

bjorn3 commented Apr 18, 2026

Looks fine to me, but CI fails.

@madsmtm madsmtm force-pushed the macho-build-version branch from 67ebe3c to 651ea9e Compare April 19, 2026 11:42
@madsmtm madsmtm requested a review from a team as a code owner April 19, 2026 11:42
@madsmtm madsmtm force-pushed the macho-build-version branch from 651ea9e to 8445b7c Compare April 19, 2026 11:47
@madsmtm
Copy link
Copy Markdown
Contributor Author

madsmtm commented Apr 19, 2026

Had to update the target-lexicon dependency (I was testing this inside rustc_codegen_cranelift). I went with 0.13.3 as that seemed to be accepted by cargo vet.

@madsmtm

This comment was marked as resolved.

madsmtm added 2 commits April 19, 2026 13:53
This makes the linker stop warning about missing platform load command.
@madsmtm madsmtm force-pushed the macho-build-version branch from 8445b7c to e333f30 Compare April 19, 2026 11:54
@alexcrichton alexcrichton added this pull request to the merge queue Apr 20, 2026
Merged via the queue into bytecodealliance:main with commit 4d0a38e Apr 20, 2026
48 checks passed
@madsmtm madsmtm deleted the macho-build-version branch April 20, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:aarch64 Issues related to AArch64 backend. cranelift:module cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Object files can only be linked with legacy clang linker on Apple

3 participants