meson: add loongarch64's definition to cpu_arch_defines
authorZhou Qiankang <wszqkzqk@qq.com>
Mon, 28 Oct 2024 04:47:20 +0000 (12:47 +0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Oct 2024 06:21:55 +0000 (15:21 +0900)
commit85d0aff84c83182875bc564e295978efd76ab905
tree28059988e38e8f51d1d7f8c7b4bcb67de822627d
parente127c66985b9e338fcb79900a88a24848d5d31fb
meson: add loongarch64's definition to cpu_arch_defines

The default definition to add is `-D__loongarch64__`, which is not searched in [bpf_tracing.h](https://github.com/libbpf/libbpf/blob/09b9e83102eb8ab9e540d36b4559c55f3bcdb95d/src/bpf_tracing.h#L68)

This may avoid `error: Must specify a BPF target arch via __TARGET_ARCH_xxx` in loongarch64

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
meson.build