wscript: check for 64bit using sys.maxsize (closes #3) master
authorPaul Brossier <piem@piem.org>
Mon, 4 Dec 2017 00:42:19 +0000 (01:42 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 4 Dec 2017 00:42:19 +0000 (01:42 +0100)
wscript

diff --git a/wscript b/wscript
index 557ba89..3ce0a7c 100644 (file)
--- a/wscript
+++ b/wscript
@@ -43,9 +43,9 @@ def configure(conf):
     if sys.platform.startswith('linux'):
         if 'mingw' in conf.env.CXX[0]:
             local_vamp_lib = local_vamp_lib_mingw
     if sys.platform.startswith('linux'):
         if 'mingw' in conf.env.CXX[0]:
             local_vamp_lib = local_vamp_lib_mingw
-        elif platform.machine() == 'x86_64':
+        elif sys.maxsize > 2**32:
             local_vamp_lib = local_vamp_lib_amd64
             local_vamp_lib = local_vamp_lib_amd64
-        elif platform.machine() == 'x86_64':
+        else:
             local_vamp_lib = local_vamp_lib_i686
     elif sys.platform == 'darwin':
         local_vamp_lib = local_vamp_lib_osx
             local_vamp_lib = local_vamp_lib_i686
     elif sys.platform == 'darwin':
         local_vamp_lib = local_vamp_lib_osx