mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 17:00:27 +01:00
scons: Less aggressive optimizations for MSVC 64bit compiler.
MSVC 64bit compiler takes forever on some of the files. Might want to revisit this again later.
This commit is contained in:
parent
0f50c4fab8
commit
fc7f924782
1 changed files with 17 additions and 4 deletions
|
|
@ -362,11 +362,24 @@ def generate(env):
|
|||
'/GL-', # disable whole program optimization
|
||||
]
|
||||
else:
|
||||
if env['machine'] == 'x86_64':
|
||||
cflags += [
|
||||
# Same as /O2, but without global optimizations or auto-inlining
|
||||
# http://msdn.microsoft.com/en-us/library/8f8h5cxt.aspx
|
||||
'/Ob1', # enable inline expansion, disable auto-inlining
|
||||
'/Oi', # enable intrinsic functions
|
||||
'/Ot', # favors fast code
|
||||
'/Oy', # omit frame pointer
|
||||
'/Gs', # enable stack probes
|
||||
'/GF', # eliminate duplicate strings
|
||||
'/Gy', # enable function-level linking
|
||||
]
|
||||
else:
|
||||
cflags += [
|
||||
'/O2', # optimize for speed
|
||||
]
|
||||
cflags += [
|
||||
'/Ox', # maximum optimizations
|
||||
'/Oi', # enable intrinsic functions
|
||||
'/Ot', # favor code speed
|
||||
#'/fp:fast', # fast floating point
|
||||
#'/fp:fast', # fast floating point
|
||||
]
|
||||
if env['profile']:
|
||||
cflags += [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue