restore the sanitize=on build feature for fuzzers

This commit is contained in:
arvidn 2020-04-13 16:06:50 +02:00 committed by Arvid Norberg
parent fda095e0b8
commit 1c15b30656
1 changed files with 6 additions and 4 deletions

View File

@ -11,10 +11,13 @@ use-project /torrent : .. ;
feature fuzz : off external on : composite propagated link-incompatible ;
feature.compose <fuzz>on : <cflags>-fsanitize=fuzzer <linkflags>-fsanitize=fuzzer ;
feature sanitize : off on : composite propagated link-incompatible ;
feature.compose <sanitize>on : <address-sanitizer>norecover <undefined-sanitizer>norecover ;
# this is a build configuration that only does limited validation (i.e. no
# invariant-checks, asserts etc.). The purpose is to quickly iterate
# sanitizers, invariant-checks, asserts etc.). The purpose is to quickly iterate
# on inputs to build code coverage
variant build_coverage : release : <debug-symbols>on <asserts>off <invariant-checks>off ;
variant build_coverage : release : <sanitize>off <debug-symbols>on <asserts>off <invariant-checks>off ;
project fuzzers
: requirements
@ -28,8 +31,7 @@ project fuzzers
<library>/torrent//torrent/
: default-build
<fuzz>on
<address-sanitizer>norecover
<undefined-sanitizer>norecover
<sanitize>on
<link>static
<variant>release
<debug-symbols>on