Created
January 1, 2024 14:28
-
-
Save tom-code/16b5dc37b356c35d44d17094fe06cf62 to your computer and use it in GitHub Desktop.
rust crosscompile mac->linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install SergioBenitez/osxct/x86_64-unknown-linux-gnu | |
rustup target add x86_64-unknown-linux-gnu | |
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc cargo build --target=x86_64-unknown-linux-gnu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment