sindresorhus/gifski-app

Full Apple Silicon support #215

sindresorhus posted onGitHub

I currently get this warning:

ld: warning: ignoring file /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Gifski-covufrfbnkqrunfagfxjgrfngrhp/Build/Intermediates.noindex/ArchiveIntermediates/Gifski/BuildProductsPath/target/release/libgifski.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64


When compiling libgifski you need to add --target=aarch64-apple-darwin to cargo build and it'll build target/aarch64-apple-darwin/release/libgifski.a compatible with Apple Silicon. That may require some wrangling with the xcode project file.

posted by kornelski over 4 years ago

So we need two different build configurations in Vendored/gifski.xcodeproj? And then we need the Gifski.xcodeproj to pick the correct libgifski.a based on the platform?

I'm not familiar with Rust and how the build stuff works, so I'm going to leave this for someone else.


I did try adding the build flag and:

āÆ rustup target add aarch64-apple-darwin
error: toolchain 'stable-x86_64-apple-darwin' does not contain component 'rust-std' for target 'aarch64-apple-darwin'

And it stopped there.

posted by sindresorhus over 4 years ago

I think the Apple Silicon support in Rust is still pre-release, so until it makes it to a stable version, you first need rustup default nightly (and/or rustup update to get the latest one).

Xcode supports per-architecture variables:

<img width="557" alt="vars" src="https://user-images.githubusercontent.com/72159/98608560-60176a80-22e3-11eb-8531-057276730cbf.png">

so perhaps this could be injected into command that runs cargo somehow?

posted by kornelski over 4 years ago

@sindresorhus has funded $72.80 to this issue.


posted by issuehunt-app[bot] about 4 years ago

rustup target add aarch64-apple-darwin now works.

posted by sindresorhus about 4 years ago

@sindresorhus there still is a fund on this issue as well as all other gifski issues. Just letting you know.

posted by lostdesign over 3 years ago

@sindresorhus has rewarded $65.52 to @sindresorhus. See it on IssueHunt

  • :moneybag: Total deposit: $72.80
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $7.28
posted by issuehunt-app[bot] over 3 years ago

Fund this Issue

$72.80
Rewarded

Rewarded pull request

Recent activities

sindresorhus was rewarded for sindresorhus/gifski-app# 215
over 3 years ago
sindresorhus submitted an output to  sindresorhus/ gifski-app# 215
over 3 years ago