Skip to content

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

Open
@alecazam

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions