News for hackers. Stuff that matters.
Re:Show HN: macOS-cross-compiler – Compile binaries for macO... by wyldfire on Saturday February 17, 2024 @08:30PM (#39415263)
> I’m curious what the blockers are for rustc to cross-compile like zig does natively.

Zig ships all the bits you need for a C/C++ toolchain including things like the C library in some cases (IIUC).

Rust could use libclang to make a "rustc cc" just like zig's. But I get the sense that it is probably not a goal of the project to have this functionality.

There are no comments on this comment yet.