Lua icon indicating copy to clipboard operation
Lua copied to clipboard

One of the few ways to build a universal macOS app.

Open alecazam opened this issue 2 years ago • 3 comments

I noted that nearly all installs from Lua were x64 based on macOS. The problem with this is any app that lua then launches also takes the x64 portion even if it's a universal application. I have a texture processing tool called kram that gets called from Lua, but I want to run the Apple Silicon portion.

The reason lua/luac are x64 is that lua.org uses a Makefile which defaults to gcc, and gcc only supports x64 and not Intel. Your CMake files were so much simpler to read and work with, and the CLI to build a universal app was this. And it took a spilt second to build. Just wanted to say thanks for your work on this.

cd build cmake .. -GNinja -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" ninja

alecazam avatar Jun 24 '23 06:06 alecazam

Thank you for your comment. I am leaving this open as an issue until I get time to add a build tests for universal macOS binary.

walterschell avatar Jul 11 '23 10:07 walterschell

Looks like testing is blocked by https://github.com/github/roadmap/issues/528

walterschell avatar Jul 16 '23 10:07 walterschell

Looks like testing is blocked by github/roadmap#528

Randomly just noticed this was solved 4 days ago

AJenbo avatar Oct 07 '23 04:10 AJenbo