build: require clang >= 3.6

Also fix an unused lambda capture warning with clang >= 5.0

Change-Id: I29c56cdf560da4a44efa038d4e65d868975aab6e
This commit is contained in:
Davide Pesavento committed 2018-06-26 21:16:10 -07:00
1 parent 359135cfb2
commit d657d53eea
3 files changed
+10 -17

No files matched your search

+2 -2
View File
@@ -20,9 +20,9 @@ def configure(conf):
'The minimum supported gcc version is 5.3.0.')
conf.flags = GccFlags()
elif cxx == 'clang':
if ccver < (3, 5, 0):
if ccver < (3, 6, 0):
errmsg = ('The version of clang you are using is too old.\n'
'The minimum supported clang version is 3.5.0.')
'The minimum supported clang version is 3.6.0.')
conf.flags = ClangFlags()
else:
warnmsg = 'Note: %s compiler is unsupported' % cxx