meson: fix missing failure if bpf-framework was enabled
authorDominique Martinet <asmadeus@codewreck.org>
Sat, 20 Jul 2024 11:38:37 +0000 (20:38 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 20 Jul 2024 13:59:34 +0000 (15:59 +0200)
commit8da20e3fe2a544979922cea457de3031aa74d64c
tree1eee3a10a0834ea9bc8266b45407f3b1b19d7d39
parent4b752770cac143386a7f37092557ef055ef5b403
meson: fix missing failure if bpf-framework was enabled

If building with clang and clang does not support bpf, then enabling
-Dbpf-framework=enabled would silently drop the feature (even printing
bpf-framework: enabled in the meson build recap, and no message anywhere
that'd hint at the failure!)

This is unexpected, so add check to fail hard in this case.

All other code paths (gcc, missing bpftool) properly check for the
option, but it is not as easy for a custom command so check explicitly
meson.build