scons: Warn when using MSVS versions prior to 2012.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 15 Mar 2013 15:23:54 +0000 (15:23 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 15 Mar 2013 19:55:54 +0000 (19:55 +0000)
Reviewed-by: Brian Paul <brianp@vmware.com>
scons/gallium.py

index 4d3de82d59cb96d7b3a0856bf267459d07de0ff2..b28be5d896169ced6f3f64866917c3496d149018 100755 (executable)
@@ -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
             ]