Use Zig-compatible Apple symbol lookup.
Some checks failed
Tagged release / prepare-release (push) Successful in 2m59s
Tagged release / build-linux-x64 (push) Successful in 35m59s
Tagged release / build-macos (push) Failing after 39m13s
Tagged release / build-linux-arm64 (push) Successful in 33m55s
Tagged release / publish-release (push) Has been cancelled
Tagged release / build-windows (push) Has been cancelled

This commit is contained in:
Hermes Agent
2026-08-15 01:43:14 +00:00
parent 6a4cf3fc2b
commit 0c32f9fdee
2 changed files with 7 additions and 4 deletions

View File

@@ -47,8 +47,8 @@ jobs:
runs-on: linux-arm64
container: ghcr.io/rust-cross/cargo-zigbuild@sha256:82af75c41958c2af2787e8bedd912da7678a9438937e223e9d83d006d747b38b
env:
CARGO_TARGET_AARCH64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-U,_OBJC_CLASS_$_MLComputePlan -C link-arg=-Wl,-U,_OBJC_CLASS_$_MLOptimizationHints
CARGO_TARGET_X86_64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-U,_OBJC_CLASS_$_MLComputePlan -C link-arg=-Wl,-U,_OBJC_CLASS_$_MLOptimizationHints
CARGO_TARGET_AARCH64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-undefined,dynamic_lookup
CARGO_TARGET_X86_64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-undefined,dynamic_lookup
steps:
- name: Check out the tag
env:

View File

@@ -130,8 +130,7 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
"cargo-zigbuild",
"macos-linker-alias",
"-Lnative=target/macos-linker",
"-Wl,-U,_OBJC_CLASS_$_MLComputePlan",
"-Wl,-U,_OBJC_CLASS_$_MLOptimizationHints",
"-Wl,-undefined,dynamic_lookup",
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-unknown-linux-gnu",
@@ -159,6 +158,10 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
"release workflow is missing {required}"
);
}
assert!(
!workflow.contains("-Wl,-U,"),
"Zig's Darwin linker does not support ld64's symbol-specific -U option"
);
for forbidden in ["python", "curl ", "hdiutil", "makensis", "tar -"] {
assert!(
!workflow.contains(forbidden),