diff options
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-x | scons/gallium.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index efe32e06c6c..61bbeb2399f 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -311,7 +311,14 @@ def generate(env): # Speed up dependency checking. See # - https://github.com/SCons/scons/wiki/GoFastButton # - https://bugs.freedesktop.org/show_bug.cgi?id=109443 - scons_version = distutils.version.StrictVersion(SCons.__version__) + + # Scons version string has consistently been in this format: + # MajorVersion.MinorVersion.Patch[.alpha/beta.yyyymmdd] + # so this formula should cover all versions regardless of type + # stable, alpha or beta. + # For simplicity alpha and beta flags are removed. + + scons_version = distutils.version.StrictVersion('.'.join(SCons.__version__.split('.')[:3])) if scons_version < distutils.version.StrictVersion('3.0.2') or \ scons_version > distutils.version.StrictVersion('3.0.4'): env.Decider('MD5-timestamp') |