meson: disable bpf if skip-deps is enabled

This commit is contained in:
Yu Watanabe 2022-05-15 23:13:38 +09:00
parent cf2dc69062
commit 3d954ef147

View file

@ -1003,7 +1003,7 @@ bpf_framework_required = want_bpf_framework == 'true'
libbpf = dependency('libbpf', required : bpf_framework_required, version : '>= 0.2')
conf.set10('HAVE_LIBBPF', libbpf.found())
if want_bpf_framework == 'false' or not libbpf.found()
if want_bpf_framework == 'false' or not libbpf.found() or skip_deps
conf.set10('BPF_FRAMEWORK', false)
else
# Support 'versioned' clang/llvm-strip binaries, as seen on Debian/Ubuntu