scons: Don't get fooled by 32bit python on a 64bit windows.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 15 Feb 2011 17:01:20 +0000 (17:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Feb 2011 18:02:06 +0000 (18:02 +0000)
scons/gallium.py

index 24319a0..76bfde1 100755 (executable)
@@ -195,7 +195,7 @@ def generate(env):
     # Determine whether we are cross compiling; in particular, whether we need
     # to compile code generators with a different compiler as the target code.
     host_platform = _platform.system().lower()
-    host_machine = os.environ.get('PROCESSOR_ARCHITECTURE', _platform.machine())
+    host_machine = os.environ.get('PROCESSOR_ARCHITEW6432', os.environ.get('PROCESSOR_ARCHITECTURE', _platform.machine()))
     host_machine = {
         'x86': 'x86',
         'i386': 'x86',