Conversation

okay is there any way to achieve LTO with Rust without nightly compiler toolchain

1
0
0
@fiore @halva dont know but chimera is like really autistic about it
0
0
1
@fiore @coolbean @halva only including the code that's actually used in the binary
3
0
2
@coolbean @fiore @halva doesn't rust only support static linking or at least default to it? Not doing either lto or dynamic linking is kinda whack
2
0
2
@coolbean @fiore @halva at least for such a big language
0
0
1

@snacks @fiore @coolbean rustc has lto support but it fails when it fails when proc-macro crates are present

2
0
2

@snacks @fiore @coolbean it’s a nightly feature atm and evidently arch’es makepkg doesn’t like rust’s toolchain management very much

0
0
2

@halva @snacks @coolbean wtf why would proc macros break this idgi

the rust compiler is . peculiar

1
0
1
@fiore @halva @snacks i mean yea its rust the compiler being peculiar is the entire fucking point
1
0
0

@fiore @snacks @coolbean it’s more complex than just dead code elimination

it’s more like compiler going over all translation units as if they were one and then applying optimization all across them

1
0
2

@snacks @coolbean @fiore @halva does static linking not do that already

2
0
2
@fiore @halva @kimapr @snacks idk stop sign but with a poor sense of boundaries?
0
0
2