From 5ed9e3687e747aadfea94b61785ba223ea3bfe59 Mon Sep 17 00:00:00 2001 From: Joey Marianer Date: Sat, 27 Aug 2022 13:20:07 -0700 Subject: [PATCH] Make Lua 5.2 build For some reason, the makefile in the lua5-2 branch is missing a few files. Rather than attempt to understand what happened there (my guess, a bad import from some other VCS), this PR just adds those files in Lupa's setup.py. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 60a1ffae..d68cf6cc 100644 --- a/setup.py +++ b/setup.py @@ -292,6 +292,8 @@ def use_bundled_lua(path, macros): os.path.splitext(obj_file)[0] + '.c' if obj_file != 'lj_vm.o' else 'lj_vm.s' for obj_file in obj_files ] + if 'lua52' in path: + lua_sources.extend(['lbitlib.c', 'lcorolib.c', 'lctype.c']) src_dir = os.path.dirname(makefile) ext_libraries = [ [libname, { @@ -344,8 +346,6 @@ def has_option(name): for lua_bundle_path in glob.glob(os.path.join(basedir, 'third-party', 'lua*' + os.sep)) if not ( False - # Lua 5.2.3 fails to build - or lua_bundle_path.endswith('lua52' + os.sep) # LuaJIT 2.0 on macOS requires a CPython linked with "-pagezero_size 10000 -image_base 100000000" # http://t-p-j.blogspot.com/2010/11/lupa-on-os-x-with-macports-python-26.html # LuaJIT 2.1-alpha3 fails at runtime.