Lua bytecode builder, cdrom fixes
This commit is contained in:
15
Makefile
15
Makefile
@@ -42,5 +42,20 @@ ifeq ($(FPSOVERLAY), 1)
|
||||
CPPFLAGS += -DPSXSPLASH_FPSOVERLAY
|
||||
endif
|
||||
|
||||
ifdef OT_SIZE
|
||||
CPPFLAGS += -DOT_SIZE=$(OT_SIZE)
|
||||
endif
|
||||
ifdef BUMP_SIZE
|
||||
CPPFLAGS += -DBUMP_SIZE=$(BUMP_SIZE)
|
||||
endif
|
||||
|
||||
include third_party/nugget/psyqo-lua/psyqo-lua.mk
|
||||
include third_party/nugget/psyqo/psyqo.mk
|
||||
|
||||
# Redirect Lua's allocator through our OOM-guarded wrapper
|
||||
LDFLAGS := $(subst psyqo_realloc,lua_oom_realloc,$(LDFLAGS))
|
||||
|
||||
# NOPARSER=1 → Use precompiled bytecode, strip Lua parser from runtime (~25KB savings)
|
||||
ifeq ($(NOPARSER),1)
|
||||
LIBRARIES := $(subst liblua.a,liblua-noparser.a,$(LIBRARIES))
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user