> As far as I know there's no way to build luajit as a universal binary since it includes hand crafted assembly. > > But, maybe we could include an x86 and am64 version of luajit and detect which interpreter to call in the shebang startup script… Apple have some [documentation on this very subject](https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary#Update-the-Architecture-List-of-Custom-Makefiles). Just build the different versions you want, and then combine them using the `lipo` command. Hope this info helps you!