DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

How do I cross compile between macOS and Windows, and between 32 and 64-bit?

If cross compiling to Linux (whether 32-bit, or 64-bit), it is as easy as running Docker. Not sure about macOS running docker with WINE.

Cross platform compiler seems to be rare; but there are multiple ones in Golang (which supports compiling cgo), as well as one in Node.js (which doesn't support compiling node-gyp).

But what about others, like Python, Rust or Crystal?

BTW, is it worth supporting 32-bit in the first place?

Top comments (0)