[fontations] Shrink the library more

This commit is contained in:
Behdad Esfahbod 2025-03-07 17:57:11 -07:00
parent 493bf07596
commit ecb9e393f2
2 changed files with 4 additions and 0 deletions

View file

@ -12,6 +12,7 @@ path = "lib.rs"
crate-type = ["staticlib"]
[profile.release]
strip = true
lto = true
panic = "abort"
codegen-units = 1
@ -20,3 +21,4 @@ codegen-units = 1
inherits = "release"
debug = true
codegen-units = 16
strip = false

View file

@ -20,6 +20,8 @@ if buildtype == 'release' or buildtype == 'debugoptimized'
else
cargo_args = []
endif
cargo_args += ['-Z', 'build-std=std,panic_abort',
'-Z', 'build-std-features=panic_immediate_abort']
harfbuzz_fontations = custom_target(
'harfbuzz_fontations',