D1873: hghave: add test for clang 6 and later
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 17 21:31:14 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
clang 6 includes integrated libfuzzer support, which makes fuzzer
stuff a little easier to work with.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1873
AFFECTED FILES
tests/hghave.py
CHANGE DETAILS
diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -700,3 +700,11 @@
return True
except ImportError:
return False
+
+ at check("clang-libfuzzer", "clang new enough to include libfuzzer")
+def has_clang_libfuzzer():
+ mat = matchoutput('clang --version', 'clang version (\d)')
+ if mat:
+ # libfuzzer is new in clang 6
+ return int(mat.group(1)) > 5
+ return False
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list