bsnes
bsnes copied to clipboard
Support building universal binaries on macOS.
I've attempted to compartmentalize the added complexity as much as possible. It could be improved also if we could make hiro and ruby use the nall compile function.
I'm going to let this rip on CI to see if it works.
Fixes #149.
It seems GitHub Actions does not have a modern-enough macOS toolchain for this, yet: https://github.com/actions/virtual-environments/issues/2486
It would be nice to teach nall's $(compile) function to accept the extra flags that hiro and ruby need, instead of those libraries defining their own version.
I also wonder if the "universal binary" flag option should be local=false, since "only compile for my CPU architecture" is basically the same idea as "only compile for my CPU microarchitecture" but moreso.
Is there a description how i can compile these branch on macOS (M1) - cd bsnes / make?
@seeseekey
Is there a description how i can compile these branch on macOS (M1) - cd bsnes / make?
Try this.
cd path/to/the/cloned/repo
make -j8 -C bsnes local=false
It should work if you have XCode installed. Then there should be a copy of bsnes in bsnes/out/bsnes.app.
I did also provide an M1 build over at https://github.com/bsnes-emu/bsnes/issues/148#issuecomment-777009602 in case you missed it.
Thank you; it works :)
I have seen the build, but it doesn't run on my M1 Mac, so I tried to compile it by myself.