Giter Club home page Giter Club logo

Comments (5)

CosmicToast avatar CosmicToast commented on July 18, 2024

Just to test, I did a quick build, and it seems to work fine (though I have no way to test the darwin-x86 version in the universal build, I did run the binary via rosetta).
To make things a little easier...

To cross-compile the x86 variant:
MACOSX_DEPLOYMENT_TARGET=14 make HOST_CC='clang -target arm64-apple-macos14' STATIC_CC='clang -target x86_64-apple-macos14' DYNAMIC_CC='clang -target x86_64-apple-macos14 -fPIC' TARGET_LD='clang -target x86_64-apple-macos14' TARGET_AR='ar -r'

Then simply lipo -create -output luajit-universal luajit-x86_64 luajit-arm64 as per the abovementioned docs (presuming you have luajit-x86_64 and luajit-arm64).

Here's an example build:
luajit.zip

from lua-macos-app.

mogenson avatar mogenson commented on July 18, 2024

Thanks, I'll give it a try!

from lua-macos-app.

mogenson avatar mogenson commented on July 18, 2024

Tested out your build instructions and tried the app on an M1 and Intel macbook. They both work! I updated the committed app with a universal luajit binary and added your build instructions to the readme. Thanks!

from lua-macos-app.

CosmicToast avatar CosmicToast commented on July 18, 2024

Just to note, the conclusion still needs updating.

from lua-macos-app.

mogenson avatar mogenson commented on July 18, 2024

D'oh! Thanks. I added a note about both of you in an acknowledgements section. I hope you don't mind.

from lua-macos-app.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.