Skip to content

Commit

Permalink
Try strip=true inside imageflow_abi
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 21, 2025
1 parent 5eb1143 commit 4c15edd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
5 changes: 5 additions & 0 deletions imageflow_abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "*"}
Expand Down

0 comments on commit 4c15edd

Please sign in to comment.