Skip to content

Commit

Permalink
More specific for -M64 flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
kochelmonster committed Nov 21, 2020
1 parent f736de5 commit 8c6638c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import io
import re
import sys
import platform
from os import path

import setuptools
Expand Down Expand Up @@ -67,9 +67,9 @@

include_dirs = [path.join(CLD2_PATH, "internal"), path.join(CLD2_PATH, "public")]

is_64bits = sys.maxsize > 2 ** 32

compile_args = ["-w", "-O2", "-fPIC"]
if is_64bits:
if platform.machine() == 'x86_64':
compile_args.append("-m64")

module = setuptools.Extension(
Expand Down

0 comments on commit 8c6638c

Please sign in to comment.