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',