meson: Define __TARGET_ARCH macros required by bpf
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 2 Jul 2024 15:50:57 +0000 (17:50 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 5 Jul 2024 18:00:04 +0000 (20:00 +0200)
commit399e78855324b3424bbbbbe8e2a3b31e75570ec6
tree079f98d3404d1af445d47635b84383d41341cef8
parenta946258e9df627c675d13b2041ae186babf269dc
meson: Define __TARGET_ARCH macros required by bpf

These are required by the bpf_tracing.h header in libbpf, see
https://github.com/libbpf/libbpf/blob/master/src/bpf_tracing.h.

bpf_tracing.h does have a few fallbacks in case __TARGET_ARCH_XXX
is not defined but recommends using the __TARGET_ARCH macros instead
so let's do that.

(cherry picked from commit 48d6dad100d0b42c02aa21d897e913461f6b3cc3)
meson.build