[fontations] Support buildtype debugoptimized really

This commit is contained in:
Behdad Esfahbod 2025-03-04 15:25:29 -07:00 committed by Khaled Hosny
parent 51c68eb29d
commit d19e45a1f5
2 changed files with 6 additions and 2 deletions

View file

@ -15,3 +15,7 @@ libc = "0.2"
name = "harfbuzz_fontations"
path = "lib.rs"
crate-type = ["staticlib"]
[profile.debugoptimized]
inherits = "release"
debug = true

View file

@ -11,8 +11,8 @@ hb_rs = rust.bindgen(
cargo = find_program('cargo')
buildtype = get_option('buildtype')
if buildtype == 'release'
cargo_args = ['--release']
if buildtype == 'release' or buildtype == 'debugoptimized'
cargo_args = ['--profile', buildtype]
else
cargo_args = []
endif