projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ee97ea
)
scons: Fix MSVC 64bit build.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 11 Feb 2011 16:29:01 +0000
(16:29 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 11 Feb 2011 20:09:26 +0000
(20:09 +0000)
scons/gallium.py
[changed mode: 0644->0755]
patch
|
blob
|
history
diff --git
a/scons/gallium.py
b/scons/gallium.py
old mode 100644
(file)
new mode 100755
(executable)
index
322b23b
..
ea09b5d
--- a/
scons/gallium.py
+++ b/
scons/gallium.py
@@
-141,6
+141,10
@@
def pkg_config_modules(env, name, modules):
def generate(env):
"""Common environment generation code"""
def generate(env):
"""Common environment generation code"""
+ # Tell tools which machine to compile for
+ env['TARGET_ARCH'] = env['machine']
+ env['MSVS_ARCH'] = env['machine']
+
# Toolchain
platform = env['platform']
if env['toolchain'] == 'default':
# Toolchain
platform = env['platform']
if env['toolchain'] == 'default':
@@
-175,6
+179,10
@@
def generate(env):
env['gcc'] = 'gcc' in os.path.basename(env['CC']).split('-')
env['msvc'] = env['CC'] == 'cl'
env['gcc'] = 'gcc' in os.path.basename(env['CC']).split('-')
env['msvc'] = env['CC'] == 'cl'
+ if env['msvc'] and env['toolchain'] == 'default' and env['machine'] == 'x86_64':
+ # MSVC x64 support is broken in earlier versions of scons
+ env.EnsurePythonVersion(2, 0)
+
# shortcuts
machine = env['machine']
platform = env['platform']
# shortcuts
machine = env['machine']
platform = env['platform']