23 ms·
Don't you? A few years ago I wanted to figure out how to cross-compile into macOS without ever actually using macOS. Is that possible now?
by jordigh 6y ago
Don't you? A few years ago I wanted to figure out how to cross-compile into macOS without ever actually using macOS. Is that possible now?
- Kaze404 6y agoI know Rust specifically supports compiling for Mac from Linux.
- efreak 6y agoDoesn't rust support cross compiling to/from any supported platform?
- steveklabnik 6y agoYes but details can get in the way. While every compiler is a cross compiler to any platform, that doesn’t mean that the platform libraries are available or that there’s a linker. For example, the MSVC target uses link.exe, and that only runs on Windows, so cross compiling to the MSCV target doesn’t work in practice even if it could in theory. You can cross compile to the GNU target for Windows though.
- saagarjha 6y agoMany POSIX-y applications will mostly work on macOS, to the point where you might ship in a package manager or something and can probably help with a segfault or two but have never touched a Mac.