mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
build: improve -fsanitize-coverage-allowlist check
The sancov filter check still fails when unused arguments are treated as
errors. To work around that, add a SanitizerCoverage flag to the
build-check.
Fixes: aa4f3a3b88
("build: fix check for -fsanitize-coverage-allowlist")
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20220621204507.698711-1-alxndr@bu.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
92e288fcfb
commit
e56d097028
1 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,8 @@ if get_option('fuzzing')
|
|||
|
||||
if cc.compiles('int main () { return 0; }',
|
||||
name: '-fsanitize-coverage-allowlist=/dev/null',
|
||||
args: ['-fsanitize-coverage-allowlist=/dev/null'] )
|
||||
args: ['-fsanitize-coverage-allowlist=/dev/null',
|
||||
'-fsanitize-coverage=trace-pc'] )
|
||||
add_global_arguments('-fsanitize-coverage-allowlist=instrumentation-filter',
|
||||
native: false, language: ['c', 'cpp', 'objc'])
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue