Skip to content

Commit 442714d

Browse files
committed
Enable luajit ffi
Also fixes a crash where jit module present but not ffi would cause filesystem require code to be called too early
1 parent 662d594 commit 442714d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mkdir -p "$BUILD_DIR/luajit"
3434
cp -auf "$ROOT_DIR/repo/luajit/." "$BUILD_DIR/luajit"
3535
make -C "$BUILD_DIR/luajit/src" -j$JOBS libluajit.a \
3636
CROSS="$TOOL_PREFIX" CFLAGS="" LDFLAGS="" LIBS="" TARGET_SYS="SWITCH" BUILDMODE="static" \
37-
XCFLAGS="-DLJ_TARGET_CONSOLE=1 -DLUAJIT_DISABLE_JIT -DLUAJIT_DISABLE_FFI -DLUAJIT_USE_SYSMALLOC" \
37+
XCFLAGS="-DLJ_TARGET_CONSOLE=1 -DLUAJIT_DISABLE_JIT -DLUAJIT_USE_SYSMALLOC" \
3838
TARGET_CFLAGS="$CFLAGS" TARGET_LDFLAGS="$LDFLAGS" TARGET_LIBS="$LIBS"
3939

4040
echo "** LÖVE **"

0 commit comments

Comments
 (0)