Introduce oss_fuzz feature option

This commit is contained in:
pdknsk
2019-03-13 11:47:36 +00:00
committed by Philip Withnall
parent 1a03ebc43a
commit 92043cf077
2 changed files with 6 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ extra_c_args = cc.get_supported_arguments('-Werror=unused-function')
# Links in a static library provided by oss-fuzz, else a standalone driver.
# https://github.com/google/oss-fuzz/blob/master/docs/new_project_guide.md#buildsh-script-environment
fuzzing_engine = cxx.find_library('FuzzingEngine', required : false)
fuzzing_engine = cxx.find_library('FuzzingEngine', required : get_option('oss_fuzz'))
if fuzzing_engine.found()
deps += fuzzing_engine
else