summaryrefslogtreecommitdiff
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-25 19:32:54 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-03-25 21:01:49 +0000
commitb3e03ede3eeb224a2c293ae924ffa58f1de7e84a (patch)
tree5a1921ed2de98f512f72c0cbbc795ade852de5b8 /scons/gallium.py
parent7860b0886c2f650152e5fb56e2a31ed6079665c1 (diff)
scons: Move MSVC specific away from Mingw builds.
Diffstat (limited to 'scons/gallium.py')
-rw-r--r--scons/gallium.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index ed4f49c1d8..e2cd0546c1 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -251,9 +251,12 @@ def generate(env):
('WINVER', '0x0501'),
# http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx,
'WIN32_LEAN_AND_MEAN',
- 'VC_EXTRALEAN',
- '_CRT_SECURE_NO_DEPRECATE',
]
+ if msvc:
+ cppdefines += [
+ 'VC_EXTRALEAN',
+ '_CRT_SECURE_NO_DEPRECATE',
+ ]
if debug:
cppdefines += ['_DEBUG']
if platform == 'winddk':