From ecb9e393f29e67c555568324797af1e8a122eac6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 7 Mar 2025 17:57:11 -0700 Subject: [PATCH] [fontations] Shrink the library more --- src/fontations/Cargo.toml | 2 ++ src/fontations/meson.build | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/fontations/Cargo.toml b/src/fontations/Cargo.toml index a1daa91f9..64b8fa8de 100644 --- a/src/fontations/Cargo.toml +++ b/src/fontations/Cargo.toml @@ -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 diff --git a/src/fontations/meson.build b/src/fontations/meson.build index 481db8e29..ad2b776af 100644 --- a/src/fontations/meson.build +++ b/src/fontations/meson.build @@ -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',