[meson] don't enable benchmark if is in nodownload wrap mode

Fixes #2551
This commit is contained in:
Ebrahim Byagowi 2020-07-08 03:12:09 +04:30 committed by GitHub
parent e04050e3b8
commit 69a1e07acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -349,7 +349,8 @@ if not get_option('tests').disabled()
endif
if not get_option('benchmark').disabled() and \
((host_machine.system() != 'windows' and \
((get_option('wrap_mode') != 'nodownload' and \
host_machine.system() != 'windows' and \
not meson.is_subproject() and \
not meson.is_cross_build()) or get_option('benchmark').enabled())
subdir('perf')