summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 5aa0b7bddd..c88af96898 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -30,6 +30,7 @@ Frontend-tool for Gallium3D architecture.
#
+import distutils.version
import os
import os.path
import re
@@ -276,7 +277,7 @@ def generate(env):
'-Wmissing-prototypes',
'-std=gnu99',
]
- if env['CCVERSION'].startswith('4.2.') or env['CCVERSION'].startswith('4.3.'):
+ if distutils.version.LooseVersion(env['CCVERSION']) >= distutils.version.LooseVersion('4.2'):
ccflags += [
'-Werror=pointer-arith',
]