Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork70
macOS cross compiler toolchains
messense/homebrew-macos-cross-toolchains
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
🚀 Help me to become a full-time open-source developer bysponsoring me on GitHub
macOS cross compiler toolchains, supports both Apple Silicon & Intel Macs.
Download precompiled toolchains fromGitHub Release
Or install using Homebrew:
brew tap messense/macos-cross-toolchains# install x86_64-unknown-linux-gnu toolchainbrew install x86_64-unknown-linux-gnu# install aarch64-unknown-linux-gnu toolchainbrew install aarch64-unknown-linux-gnu
Suppose you have installedx86_64-unknown-linux-gnu
toolchain and have it onPATH
,setup the environment variables as below to use it with Cargo.
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc
Usually onlyCARGO_TARGET_*_LINKER
is required, in case it somehow fails to compile,you can also set some extra environment variables:
export CC_x86_64_unknown_linux_gnu=x86_64-linux-gnu-gccexport CXX_x86_64_unknown_linux_gnu=x86_64-linux-gnu-g++export AR_x86_64_unknown_linux_gnu=x86_64-linux-gnu-ar
About
macOS cross compiler toolchains
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.