mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
turns out sys.maxint isn't reliable on windows. Feh.
This commit is contained in:
parent
59ec701a26
commit
5a1c474c31
@ -25,8 +25,18 @@ OPTIMIZE="3"
|
|||||||
VERBOSE=False
|
VERBOSE=False
|
||||||
LINK_ALL_STATIC=False
|
LINK_ALL_STATIC=False
|
||||||
|
|
||||||
# platform.architecture isn't reliable on OSX.
|
# Is the current Python a 32-bit or 64-bit build? There doesn't
|
||||||
is_64 = (sys.maxint > 0x100000000L)
|
# appear to be a universal test for this.
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
# On OSX, platform.architecture reports '64bit' even if it is
|
||||||
|
# currently running in 32-bit mode. But sys.maxint is a reliable
|
||||||
|
# indicator.
|
||||||
|
is_64 = (sys.maxint > 0x100000000L)
|
||||||
|
else:
|
||||||
|
# On Windows (and Linux?) sys.maxint reports 0x7fffffff even on a
|
||||||
|
# 64-bit build. So we stick with platform.architecture in that
|
||||||
|
# case.
|
||||||
|
is_64 = (platform.architecture()[0] == '64bit')
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
##
|
##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user