Closed NCGThompson closed 7 months ago
Disclaimer: Some of the ui tests failed, but I wasn't able to run those tests before I made this change. Still diagnosing those.
Maybe running rustup which rustc
and using the output would be better? That returns the ground truth as used by rustup.
Maybe running
rustup which rustc
and using the output would be better? That returns the ground truth as used by rustup.
Almost done. Should I squash/undo, or should I keep the commit history?
Thanks for your contribution!
build_system/src/test.rs
generates aconfig.toml
that contains a path directly to (what should be) the appropriate rustc binary. However, it incorrectly assumed rustup stores the rustc binaries in~/.rustup
. In actuality, rustup first checks the environment variableRUSTUP_HOME
, and defaults to~/.rustup
if the variable is not set. Nowbuild_system/src/test.rs
uses the correct path.If there is a more idiomatic way to encode this please let me know and I'll fix it.