Lunatic/OS X: generate bytecode in object files from LuaJIT.

git-svn-id: https://svn.eduke32.com/eduke32@3693 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-04-17 20:34:59 +00:00
parent d30faf8950
commit c298c56652

View file

@ -434,13 +434,7 @@ ivfrate$(EXESUFFIX): $(OBJ)/ivfrate.$o
# Create object files directly with luajit
$(OBJ)/luaJIT_BC_%.$o: $(SRC)/lunatic/%.lua
$(COMPILE_STATUS)
ifeq ($(PLATFORM),DARWIN)
# LuaJIT on OS X doesn't support writing Mach-O objects as of beta-10,
# so we pipe the C source into GCC.
if $(LUAJIT) -bg -t c $< - | $(CC) -xc -c - -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
else
if $(LUAJIT) -bg $< $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
endif
# Same thing for defs.ilua which I'm too reluctant to rename now:
$(OBJ)/luaJIT_BC_%.$o: $(SRC)/lunatic/%.ilua