From f400d8b30c4bed74f85272e6626215a751ddcb3b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 Mar 2025 14:54:11 -0700 Subject: [PATCH] [fontations] Pass meson buildtype to cargo --- src/fontations/meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fontations/meson.build b/src/fontations/meson.build index b4e2bacb8..0ab043bb9 100644 --- a/src/fontations/meson.build +++ b/src/fontations/meson.build @@ -10,6 +10,13 @@ hb_rs = rust.bindgen( cargo = find_program('cargo') +buildtype = get_option('buildtype') +if buildtype == 'release' + cargo_args = ['--release'] +else + cargo_args = [] +endif + harfbuzz_fontations = custom_target( 'harfbuzz_fontations', input: ['lib.rs'], @@ -18,7 +25,7 @@ harfbuzz_fontations = custom_target( env: ['OUT_DIR=' + meson.current_build_dir()], command: [ cargo, 'build', - #'--release', + ] + cargo_args + [ '--lib', '--target-dir', meson.current_build_dir(), '-Z', 'unstable-options',