1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

bpf: stabilize GCC BPF support

Now that we have a GCC release which should support our bpf programs
lets set the minimum version and stabilize it.
This commit is contained in:
James Hilliard 2023-05-29 15:01:34 -06:00 committed by Yu Watanabe
parent e30b4c1357
commit 4a7a13b5a0
2 changed files with 2 additions and 3 deletions

View File

@ -1134,10 +1134,9 @@ else
clang_supports_bpf = run_command(clang, '-target', 'bpf', '--print-supported-cpus', check : false).returncode() == 0
endif
elif bpf_compiler == 'gcc'
warning('GCC BPF Compiler support is experimental and not recommended.')
bpf_gcc = find_program('bpf-gcc',
required : true,
version : '>= 12.1.0')
version : '>= 13.1.0')
bpf_gcc_found = bpf_gcc.found()
endif

View File

@ -501,7 +501,7 @@ option('analyze', type: 'boolean', value: true,
description : 'install systemd-analyze')
option('bpf-compiler', type : 'combo', choices : ['clang', 'gcc'],
description: 'compiler used to build BPF programs, note: gcc is experimental')
description: 'compiler used to build BPF programs')
option('bpf-framework', type : 'combo', choices : ['auto', 'true', 'false'],
description: 'build BPF programs from source code in restricted C')