Allow newer CoreML symbols in cross builds.

This commit is contained in:
Hermes Agent
2026-08-14 23:31:12 +00:00
parent 612f4f71df
commit 2bc42c7483
2 changed files with 4 additions and 2 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
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
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
steps:
- name: Check out the tag
env:

View File

@@ -130,6 +130,8 @@ 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",
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-unknown-linux-gnu",