From 4c15edd593c89dfd49b83fb39a129f5604d4fefb Mon Sep 17 00:00:00 2001 From: Lilith River Date: Tue, 21 Jan 2025 14:46:48 -0700 Subject: [PATCH] Try strip=true inside imageflow_abi --- Cargo.toml | 5 +---- imageflow_abi/Cargo.toml | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 836394a26..5b5bf8002 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,7 @@ resolver = "2" debug = true split-debuginfo = "packed" -# Musl-specific settings - strip symbols since these are static builds -[target.'cfg(target_env = "musl")'.profile.release] -strip = true # Strip symbols only for musl builds -lto = true # Keep link-time optimization for better size/performance + # RIAPI Tests take 600ms each at 0, 200ms each at 1, 36ms each at 2, 26ms each at 3 [profile.test] diff --git a/imageflow_abi/Cargo.toml b/imageflow_abi/Cargo.toml index cc276be89..770f99078 100644 --- a/imageflow_abi/Cargo.toml +++ b/imageflow_abi/Cargo.toml @@ -17,6 +17,11 @@ doctest = false [target.'cfg(target_env = "musl")'.lib] crate-type = ["staticlib"] +# Musl-specific settings - strip symbols since these are static builds +[target.'cfg(target_env = "musl")'.profile.release] +strip = true # Strip symbols only for musl builds +lto = true # Keep link-time optimization for better size/performance + [dependencies] libc = "0.2" imageflow_core = { path = "../imageflow_core", version = "*"}