diff --git a/codepy/toolchain.py b/codepy/toolchain.py index cec6ad64e04c029f6919442c01b2c4d70f6343cd..5e72433438ff6c64771397c04b0bbda181d5fe6b 100644 --- a/codepy/toolchain.py +++ b/codepy/toolchain.py @@ -450,7 +450,7 @@ def guess_toolchain(): # So we need to check explicitly how we're running # And update the cflags accordingly import sys - if sys.maxint == 0x7fffffff: + if sys.maxsize == 0x7fffffff: kwargs["cflags"].extend(['-arch', 'i386']) return GCCToolchain(**kwargs) @@ -463,7 +463,7 @@ def guess_toolchain(): # So we need to check explicitly how we're running # And update the cflags accordingly import sys - if sys.maxint == 0x7fffffff: + if sys.maxsize == 0x7fffffff: kwargs["cflags"].extend(['-arch', 'i386']) return GCCToolchain(**kwargs)