mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 00:20:37 +00:00
![Gregory Szorc](/assets/img/avatar_default.png)
Before this commit, RUSTFLAGS was derived in rules.mk by consulting various variables set by configure. It isn't clear to me why things are implemented this way. We don't appear to have moz.build level overrides for Rust compiler flags. So there doesn't appear to be a compelling reason why we can't derive these values in configure. So, this commit ports the code for deriving default RUSTFLAGS from rules.mk to toolchain.configure. The port is pretty straightforward as far as the logic goes. MozReview-Commit-ID: JhAE9Qlo8SK --HG-- extra : rebase_source : 6186cb81cd37c516b3d645419b9461bf501d6ba2