bsnes icon indicating copy to clipboard operation
bsnes copied to clipboard

Support building universal binaries on macOS.

Open jchv opened this issue 4 years ago • 4 comments

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.

jchv avatar Feb 11 '21 03:02 jchv

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.

Screwtapello avatar Feb 11 '21 06:02 Screwtapello

Is there a description how i can compile these branch on macOS (M1) - cd bsnes / make?

seeseekey avatar Feb 23 '21 18:02 seeseekey

@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.

jchv avatar Feb 23 '21 23:02 jchv

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.

seeseekey avatar Feb 24 '21 06:02 seeseekey