meson: run cargo build in release mode when using plain buildtype

This commit is contained in:
Vladislav Nepogodin 2024-06-28 16:10:16 +04:00
parent 657fb6a4aa
commit 22f13e2284
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -271,7 +271,7 @@ gen_bpf_skel = generator(bpftool_build_skel,
# For rust sub-projects. # For rust sub-projects.
# #
cargo_build_args = ['--quiet'] cargo_build_args = ['--quiet']
if get_option('buildtype') == 'release' if get_option('buildtype') == 'release' or get_option('buildtype') == 'plain'
cargo_build_args += '--release' cargo_build_args += '--release'
endif endif