Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Commit ccf2ae3

Browse files
committed
fix profiles for ebpf
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
1 parent 95650e8 commit ccf2ae3

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ codegen-units = 1
6565
# eBPF crate: conservative tweaks; again, no panic/lto/strip here
6666
[profile.bpf]
6767
inherits = "release"
68-
lto = "off" # <<< IMPORTANT: no LTO for BPF
69-
opt-level = "z" # small is good for eBPF objects
70-
codegen-units = 1
71-
panic = "abort"
72-
debug = 0
73-
debug-assertions = false
74-
overflow-checks = false
75-
strip = "debuginfo"
68+
lto = "fat" # same as your previous lto = true
69+
opt-level = 3
70+
codegen-units = 1 # redundant if inherited, but explicit is fine
71+
panic = "abort" # inherited; keeping for clarity
72+
debug = 2 # keep DWARF; helpful for BTF/diagnostics

0 commit comments

Comments
 (0)