Merge pull request #186 from wtfbbqhax/luajit-osx

Fix OSX + Luajit
This commit is contained in:
The Phantom Derpstorm 2016-08-22 14:23:33 -04:00 committed by GitHub
commit 37540d086e

View File

@ -107,10 +107,11 @@ elif 'darwin' in sys.platform:
# Using normal lua
lua_incl = lua_version[:-1] + '.' + lua_version[-1]
lua_lib = lua_version[:-2] + '.' + lua_version[-2] + '.' + lua_version[-1]
elif re.match(r'luajit5[1-3]', lua_version):
elif re.match(r'luajit', lua_version):
# luajit
lua_incl = 'luajit-2.0'
lua_lib = lua_version[:-2] + '-' + lua_version[-2] + '.' + lua_version[-1]
lua_lib = 'luajit'
ldflags.extend(['-pagezero_size 10000', '-image_base 100000000'])
else:
raise Exception('Unknown lua_version={}' % lua_version)