Re:Show HN: macOS-cross-compiler – Compile binaries for macO...
by pornel on Saturday February 17, 2024 @06:21PM
(#39414511)
Rustup arch only adds support for static libraries (unliked objects), and craps out as soon as you try to build a binary.
Rust did not do the legwork that zig did to bundle libc and a working linker, and Cargo is exceptionally naive in its default configuration, so it won't even find a usable cross-linker on the system, nor even try the chronically-unfinished rustc-lld integration there is.
Rust did not do the legwork that zig did to bundle libc and a working linker, and Cargo is exceptionally naive in its default configuration, so it won't even find a usable cross-linker on the system, nor even try the chronically-unfinished rustc-lld integration there is.