summaryrefslogtreecommitdiffstats
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-09-01 09:47:40 +0900
committerJosé Fonseca <[email protected]>2008-09-02 02:16:58 +0900
commita6c725839482f3d0f2af0eb15e5b6ab80184fb6c (patch)
tree6168104bdbe41c9e1781fd29a1f2b9ba2fa9ee4b /scons/gallium.py
parentf4d707b40e8dde8cdf68f5c4595b838c138fcf9b (diff)
scons: Optimize for speed, not size, with MSVC.
Diffstat (limited to 'scons/gallium.py')
-rw-r--r--scons/gallium.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 43603e51044..342a0879c30 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -290,7 +290,7 @@ def generate(env):
]
if msvc:
# See also:
- # - http://msdn2.microsoft.com/en-us/library/y0zzbyt4.aspx
+ # - http://msdn.microsoft.com/en-us/library/19z1t1wy.aspx
# - cl /?
if debug:
cflags += [
@@ -302,7 +302,8 @@ def generate(env):
cflags += [
'/Ox', # maximum optimizations
'/Oi', # enable intrinsic functions
- '/Os', # favor code space
+ '/Ot', # favor code speed
+ #'/fp:fast', # fast floating point
]
if env['profile']:
cflags += [
@@ -313,6 +314,11 @@ def generate(env):
'/W3', # warning level
#'/Wp64', # enable 64 bit porting warnings
]
+ if env['machine'] == 'x86':
+ cflags += [
+ #'/QIfist', # Suppress _ftol
+ #'/arch:SSE2', # use the SSE2 instructions
+ ]
if platform == 'windows':
cflags += [
# TODO