108 days ago · Tech · 0 comments

One of my main interests with mruby is its ability to create standalone executables. As explored in this post, this is absolutely possible and works well. However, there is a classic issue of most standalone binaries: they can only be run on the same, or very similar, system as the one they were built on. For example, if I take an executable from my mruby Hello World project, built on amd64 Linux, it won’t work on Silicon Mac: $ ./hello exec: Failed to execute process: './hello' the file could not be run by the operating system. exec: Maybe the interpreter directive (#! line) is broken? Mruby does have some cross-compilation capabilities, but I’ll be honest: it always felt intimidating, complected and I never actually got it working from Linux to MacOS. So, are we doomed here? Is it possible to build standalone binaries for MacOS without a MacOS docker image or something? While reading the changelog of mruby I noticed one entry there that got me curious: New Platform: Cosmopolitan…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.