1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-09 01:18:19 +03:00

bpf: test with GCC BPF compiler on opensuse

This commit is contained in:
James Hilliard 2023-05-29 15:45:13 -06:00 committed by Yu Watanabe
parent e4ab2db9df
commit e4086f7dc9
3 changed files with 8 additions and 0 deletions

View File

@ -1135,6 +1135,7 @@ else
endif
elif bpf_compiler == 'gcc'
bpf_gcc = find_program('bpf-gcc',
'bpf-none-gcc',
required : true,
version : '>= 13.1.0')
bpf_gcc_found = bpf_gcc.found()

View File

@ -176,6 +176,12 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
)
fi
if grep -q '^ID="opensuse' /etc/os-release; then
CONFIGURE_OPTS+=(
-Dbpf-compiler=gcc
)
fi
( set -x; meson setup "$BUILDDIR" "${CONFIGURE_OPTS[@]}" )
fi

View File

@ -36,6 +36,7 @@ Packages=
BuildPackages=
audit-devel
bpftool
cross-bpf-gcc13
dbus-1-devel
docbook-xsl-stylesheets
fdupes