AstroTechies / astro_modloader

Astroneer modloader rewritten in Rust
22 stars 5 forks source link

Better `[profile.release]` for `Cargo.toml`. #7

Closed Esper89 closed 1 year ago

Esper89 commented 1 year ago

opt-level = 3 is redundant, since the release profile already has a default opt-level of 3.

Symbol stripping might not be something you want, but it tends to shrink binary size significantly.

localcc commented 1 year ago

Last time we checked symbol stripping didn't provide a significant size reduction, and it would be nice to have more debug info in case of a crash.

Esper89 commented 1 year ago

Do windows builds even contain debug info in the first place? I thought they generated a separate .pdb file.

localcc commented 1 year ago

Oh, right, does the debug info from panics stay when stripping though?

Esper89 commented 1 year ago

Yep, even with panic = "abort" the file names and line numbers stay.