Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

macOS cross compiler toolchains

NotificationsYou must be signed in to change notification settings

messense/homebrew-macos-cross-toolchains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Use with Rust

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

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp