[Bug 109443] Build failure with MSVC when using Scons >= 3.0.2

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 27 16:33:28 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=109443

--- Comment #7 from Alex Granni <liviuprodea at yahoo.com> ---
I'd go for this way as 3.0.4 is also affected:

diff --git a/scons/gallium.py b/scons/gallium.py
index 963834a5fbc..565f19f3f1a 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -308,7 +308,10 @@ def generate(env):
     if env.GetOption('num_jobs') <= 1:
         env.SetOption('num_jobs', num_jobs())

-    env.Decider('MD5-timestamp')
+    scons_version = distutils.version.StrictVersion(SCons.__version__)
+    if scons_version < distutils.version.StrictVersion('3.0.2') or \
+       scons_version > distutils.version.StrictVersion('3.0.4'):
+        env.Decider('MD5-timestamp')
     env.SetOption('max_drift', 60)

     # C preprocessor options

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20190227/cd8a21ef/attachment.html>


More information about the intel-3d-bugs mailing list