프로젝트
GitHub에서 보기
messense/homebrew-macos-cross-toolchains
소개
macOS용 크로스 컴파일 도구 체인입니다.
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +4
- in 1 month
- +6
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalmacos-cross-toolchains
🚀 Help me to become a full-time open-source developer by sponsoring me on GitHub
macOS cross compiler toolchains, supports both Apple Silicon & Intel Macs.
Download precompiled toolchains from GitHub Release
Or install using Homebrew:
brew tap messense/macos-cross-toolchains
# install x86_64-unknown-linux-gnu toolchain
brew install x86_64-unknown-linux-gnu
# install aarch64-unknown-linux-gnu toolchain
brew install aarch64-unknown-linux-gnu
Use with Rust
Suppose you have installed x86_64-unknown-linux-gnu toolchain and have it on PATH,
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 only CARGO_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-gcc
export CXX_x86_64_unknown_linux_gnu=x86_64-linux-gnu-g++
export AR_x86_64_unknown_linux_gnu=x86_64-linux-gnu-ar
관련 프로젝트 살펴보기
불러오는 중…