Building with my own LuaJIT

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
keithshufelt
Prole
Posts: 1
Joined: Wed Jan 18, 2023 10:12 am

Building with my own LuaJIT

Post by keithshufelt »

Hello!

I recently got an arm64 laptop, and it's great. However, LuaJIT had some bugs which caused frequent segfaults on arm64. Luckily these bugs have been fixed in git, but they haven't yet made it to a release.

I can't figure out how to recompile Love to use the version of LuaJIT which has the fixes applied. Could anyone point me in the right direction? I'm very unfamiliar with autotools etc.
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: Building with my own LuaJIT

Post by pgimeno »

With cmake, it probably suffices to use:

Code: Select all

cmake -DLUAJIT_INCLUDE_DIR=<path>/src -DLUAJIT_LIBRARY=<path>/src/libluajit.so <rest of cmake command line>
With autotools, I don't know. Maybe ./configure --with-lua=... (see .configure --help)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests