summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 3893a9fabe..e0bbb6a908 100644
--- a/meson.build
+++ b/meson.build
@@ -1102,6 +1102,9 @@ else
# Check if 'clang -target bpf' is supported.
clang_supports_bpf = run_command(clang, '-target', 'bpf', '--print-supported-cpus', check : false).returncode() == 0
endif
+ if bpf_framework.enabled() and not clang_supports_bpf
+ error('bpf-framework was enabled but clang does not support bpf')
+ endif
elif bpf_compiler == 'gcc'
bpf_gcc = find_program('bpf-gcc',
'bpf-none-gcc',