tests/hghave.py
changeset 35668 67cead0eb671
parent 35139 a2e927ded455
child 36659 dc11f257ad1d
equal deleted inserted replaced
35667:de598e84c244 35668:67cead0eb671
   698         import fuzzywuzzy
   698         import fuzzywuzzy
   699         fuzzywuzzy.__version__
   699         fuzzywuzzy.__version__
   700         return True
   700         return True
   701     except ImportError:
   701     except ImportError:
   702         return False
   702         return False
       
   703 
       
   704 @check("clang-libfuzzer", "clang new enough to include libfuzzer")
       
   705 def has_clang_libfuzzer():
       
   706     mat = matchoutput('clang --version', 'clang version (\d)')
       
   707     if mat:
       
   708         # libfuzzer is new in clang 6
       
   709         return int(mat.group(1)) > 5
       
   710     return False