Fix tests with luajit on darwin

This commit is contained in:
Victor Roemer 2016-08-20 19:40:59 -04:00
parent 5f036adf48
commit a577a23685

View File

@ -106,10 +106,10 @@ elif 'darwin' in sys.platform:
# Using normal lua # Using normal lua
lua_incl = lua_version[:-1] + '.' + lua_version[-1] lua_incl = lua_version[:-1] + '.' + lua_version[-1]
lua_lib = lua_version[:-2] + '.' + lua_version[-2] + '.' + 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 # luajit
lua_incl = 'luajit-2.0' lua_incl = 'luajit-2.0'
lua_lib = lua_version[:-2] + '-' + lua_version[-2] + '.' + lua_version[-1] lua_lib = 'luajit'
else: else:
raise Exception('Unknown lua_version={}' % lua_version) raise Exception('Unknown lua_version={}' % lua_version)