mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
scons: Warn when using MSVS versions prior to 2012.
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c5d5827951
commit
49ae9b08d4
1 changed files with 2 additions and 0 deletions
|
|
@ -402,6 +402,8 @@ def generate(env):
|
|||
'/Oi', # enable intrinsic functions
|
||||
]
|
||||
else:
|
||||
if distutils.version.LooseVersion(env['MSVC_VERSION']) < distutils.version.LooseVersion('11.0'):
|
||||
print 'scons: warning: Visual Studio versions prior to 2012 are known to produce incorrect code when optimizations are enabled ( https://bugs.freedesktop.org/show_bug.cgi?id=58718 )'
|
||||
ccflags += [
|
||||
'/O2', # optimize for speed
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue