Skip to content

Commit bb769a7

Browse files
committed
Build: Do not try to build LuaJIT 2.0 on Aarch64.
1 parent 54fba73 commit bb769a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ def handle_arg(arg: str):
399399
or (platform == 'darwin' and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep)))
400400
# Let's restrict LuaJIT to x86_64/Arm64 for now.
401401
or (get_machine().lower() not in ("x86_64", "amd64", "aarch64", "arm64") and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep)))
402+
# LuaJIT 2.0 does not support aarch64.
403+
or (get_machine().lower() in ("aarch64", "arm64") and 'luajit20' in os.path.basename(lua_bundle_path.rstrip(os.sep)))
402404
)
403405
]
404406
if not configs:

0 commit comments

Comments
 (0)