Comments (5)
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.
Thanks, I'll give it a try!
from lua-macos-app.
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.
Just to note, the conclusion still needs updating.
from lua-macos-app.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-macos-app.