DEV Community


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

patarapolw profile image Pacharapol Withayasakpunt ・1 min read

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?

Discussion (0)

Editor guide