From 8c6638c487afc9ed55be4193e5fbc8a096728a47 Mon Sep 17 00:00:00 2001 From: kochelmonster Date: Sat, 21 Nov 2020 22:32:47 +0100 Subject: [PATCH] More specific for -M64 flag. --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 9ee7fe1..758d2cd 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ import io import re -import sys +import platform from os import path import setuptools @@ -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(