From 2af9dcb6ebbf673b40de7d81539e13f7058c1462 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 31 Aug 2011 22:03:18 +0000 Subject: [PATCH] platform.architecture isn't reliable on OSX. --- makepanda/makepanda.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index cdeb087738..01400d86b2 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -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"