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 24319a0c378ce4c58a00448713d633adc48a2113..76bfde1c1b72700d0ba1df5c5ac3935bba307afd 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',