Use libfuzzer7 with Clang 7.
@@ -1477,7 +1477,9 @@ class GnuCompiler(Compiler):
# fuzzing configuration
if self.tc.is_clang and self.tc.version_at_least(5, 0):
emit('FSANITIZE_FUZZER_SUPPORTED', 'yes')
- if self.tc.version_at_least(6, 0):
+ if self.tc.version_at_least(7):
+ emit('LIBFUZZER_PATH', 'contrib/libs/libfuzzer7')
+ elif self.tc.version_at_least(6):
emit('LIBFUZZER_PATH', 'contrib/libs/libfuzzer6')
else:
emit('LIBFUZZER_PATH', 'contrib/libs/libfuzzer-5.0')
