-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add cross-compilation assistance for linux aarch64 #577
Conversation
21ebda7
to
53f3283
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the one typo: ship it! Love having more cross-compilation assistance data :)
Co-authored-by: Manuel Fuchs <[email protected]>
89391ad
to
6ff05ef
Compare
@@ -59,6 +59,31 @@ The easiest way to install 'musl-gcc' is to install the 'musl-tools' package: | |||
- https://packages.debian.org/bullseye/musl-tools"#, | |||
)), | |||
} | |||
} else if target_triple.as_ref() == AARCH64_UNKNOWN_LINUX_MUSL && cfg!(target_os = "linux") { | |||
let gcc_binary_path = "aarch64-linux-gnu-gcc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hone Was there a reason this is aarch64-linux-gnu-gcc
not aarch64-linux-musl-gcc
? We're using MUSL for everything else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #724.
In order to cross-compile to aarch64 on Linux,
cargo
needs some guidance to find the compiler and linker.