diff options
| author | Patrick <paddi@cryne.me> | 2024-07-19 23:28:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-19 16:28:40 -0500 |
| commit | 4ee0b784ea26156445711e605055b7406591621e (patch) | |
| tree | 6f66b7adba2a5f2c3f90f5192ae0508cc6a6f18e /azalea-protocol/src | |
| parent | 3d717b63e529938b5ca1bd842dc57e2332820ad0 (diff) | |
| download | azalea-drasl-4ee0b784ea26156445711e605055b7406591621e.tar.xz | |
Determine rust channel by parsing rustc output if env vars do not exist (#163)
* Determine rust channel by parsing rustc output
The RUSTUP_TOOLCHAIN environment variable might not always be present.
This is the case for e.g. NixOS where rust is routinely not installed via
rustup, thus not setting this env var, causing build failures.
Instead, build.rs will now run `rustc -V` and check if the output contains the
word "nightly".
* Check env vars first, fall back to rustc in $PATH
* Try to check RUSTUP_TOOLCHAIN first
Diffstat (limited to 'azalea-protocol/src')
0 files changed, 0 insertions, 0 deletions
