]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bpf: stabilize GCC BPF support
authorJames Hilliard <james.hilliard1@gmail.com>
Mon, 29 May 2023 21:01:34 +0000 (15:01 -0600)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 May 2023 00:27:56 +0000 (09:27 +0900)
Now that we have a GCC release which should support our bpf programs
lets set the minimum version and stabilize it.

meson.build
meson_options.txt

index 97622b6d9731f2ccda89201357815847664709b1..dd5a0cff897a2bdd98212492dfc7571698a25b6a 100644 (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
 
index 04234c658b9a1e5da56eefa5cf0aedeed9705d39..46a74b763587e307a7afcb9f697488afcdb9f370 100644 (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')