Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Setup: support aarch64 platform #327

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,10 @@ def pkgconfig_win(flag, cut):
pass
else:
ext_args['extra_compile_args'].append("-std=c++11")
ext_args['library_dirs'].append("/usr/lib/x86_64-linux-gnu/")
if platform.machine() == 'x86_64':
ext_args['library_dirs'].append("/usr/lib/x86_64-linux-gnu/")
elif platform.machine() == 'aarch64':
ext_args['library_dirs'].append("/usr/lib/aarch64-linux-gnu/")
# gcc? use standard library
# ext_args['extra_compile_args'].append("-stdlib=libstdc++")
# ext_args['extra_link_args'].append("-stdlib=libstdc++")
Expand Down