mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
platform.architecture isn't reliable on OSX.
This commit is contained in:
parent
6c2494be17
commit
2af9dcb6eb
@ -1050,7 +1050,8 @@ def CompileLink(dll, obj, opts):
|
||||
if (OSXTARGET != None):
|
||||
cmd += " -isysroot " + SDK["MACOSX"] + " -Wl,-syslibroot," + SDK["MACOSX"]
|
||||
cmd += " -mmacosx-version-min=" + OSXTARGET
|
||||
if int(platform.mac_ver()[0][3]) >= 6:
|
||||
# platform.architecture isn't reliable on OSX.
|
||||
if sys.maxint > 0x100000000L:
|
||||
cmd += " -arch x86_64"
|
||||
else:
|
||||
cmd += " -arch i386"
|
||||
|
Loading…
x
Reference in New Issue
Block a user