| 17 Jan 2026 |
K900 | https://doc.rust-lang.org/cargo/reference/profiles.html#release | 22:22:24 |
K900 | [profile.release]
opt-level = 3
debug = false
split-debuginfo = '...' # Platform-specific.
strip = "none"
debug-assertions = false
overflow-checks = false
lto = false
panic = 'unwind'
incremental = false
codegen-units = 16
rpath = false
| 22:22:39 |
asa | oh I see | 22:28:03 |
asa | sorry for the misunderstanding, I'm not sure where I read the thin lto by default thing | 22:28:31 |
asa | the profiles page you linked to does say that lto=false is different from lto=off though, and that lto=false enables "thin local lto" | 22:29:54 |
K900 | That should be our default as well, as I don't think we explicitly pass lto=false? | 22:39:17 |
whispers (it/fae) | i think we just inherit whatever upstream has profile.release set to? | 22:42:20 |
asa | probably is? idk how rustc deals with default options | 22:42:21 |
whispers (it/fae) | * | 22:42:42 |
whispers (it/fae) | * | 22:43:12 |
asa | In reply to @k900:0upti.me And even -C opt-level=3 is different from -O3 never thought about this but I guess it's a good thing rust release builds don't use fast-math by default... | 22:44:11 |
asa | i looked into this more and it seems thin local lto is redundant with codegen-units=1 anyway (and rustc disables thin local lto if codegen-units=1 and the lto level is unspecified)
buildRustCrate has defaultCodegenUnits ? 1 since the derivation doesn't allow for rebuilds on a higher granularity than per-crate anyway
| 23:28:51 |
| 18 Jan 2026 |
debtquity | dynamic derivations | 00:21:58 |
debtquity | ? | 00:21:59 |