Skip to content

chore: fixed the 'aarch64-unknown-linux-gnu' cross compilation issue on macOS-arm64.#171

Open
vincent-dfinity wants to merge 1 commit intobrson:masterfrom
vincent-dfinity:aarch64-linux-cross-compiling
Open

chore: fixed the 'aarch64-unknown-linux-gnu' cross compilation issue on macOS-arm64.#171
vincent-dfinity wants to merge 1 commit intobrson:masterfrom
vincent-dfinity:aarch64-linux-cross-compiling

Conversation

@vincent-dfinity
Copy link

@vincent-dfinity vincent-dfinity commented Jul 24, 2025

This PR enables cross-compiling to aarch64-unknown-linux-gnu target on macOS-arm64.

  1. Needs to install by running brew install aarch64-unknown-linux-gnu and rustup target add aarch64-unknown-linux-gnu first.
  2. -D__STDC_FORMAT_MACROS compilation flag is used to fix the cinttypes issues.
    Some macros like PRIx64, PRIx32, PRIxPTR used by binaryen are not defined by default even including cinttypes.

I only focus on compiling aarch64-unknown-linux-gnu on macOS-arm64, not sure about other combinations. It may not be the best solution.

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.

1 participant