tests/hghave.py
changeset 36659 dc11f257ad1d
parent 35668 67cead0eb671
child 36678 7834927f0243
equal deleted inserted replaced
36658:e1c6c1f9855d 36659:dc11f257ad1d
   701     except ImportError:
   701     except ImportError:
   702         return False
   702         return False
   703 
   703 
   704 @check("clang-libfuzzer", "clang new enough to include libfuzzer")
   704 @check("clang-libfuzzer", "clang new enough to include libfuzzer")
   705 def has_clang_libfuzzer():
   705 def has_clang_libfuzzer():
   706     mat = matchoutput('clang --version', 'clang version (\d)')
   706     mat = matchoutput('clang --version', b'clang version (\d)')
   707     if mat:
   707     if mat:
   708         # libfuzzer is new in clang 6
   708         # libfuzzer is new in clang 6
   709         return int(mat.group(1)) > 5
   709         return int(mat.group(1)) > 5
   710     return False
   710     return False