getsolus / ypkg

Modern, declarative, structured build format
https://getsol.us
GNU General Public License v3.0
22 stars 11 forks source link

Support rust via our optimize keys #53

Open joebonrichie opened 9 months ago

joebonrichie commented 9 months ago

e.g. for optimize : lto we should `export RUSTFLAGS="${RUSTFLAGS} -C lto"

the presence of a profile : | should also support automatic pgo similarly to how it does for C/CXX builds.

Codegen options: https://doc.rust-lang.org/rustc/codegen-options/index.html

PGO Flags: https://doc.rust-lang.org/rustc/profile-guided-optimization.html