1
Fork 0

Avoid hard-coded rustc when building wrappers

This commit is contained in:
bjorn3 2023-01-14 14:08:23 +00:00
parent 22c5249f68
commit 629eab79c1
5 changed files with 18 additions and 5 deletions

View file

@ -24,7 +24,7 @@ fn main() {
}
// Ensure that the right toolchain is used
env::set_var("RUSTUP_TOOLCHAIN", env!("RUSTUP_TOOLCHAIN"));
env::set_var("RUSTUP_TOOLCHAIN", env!("TOOLCHAIN_NAME"));
#[cfg(unix)]
Command::new("rustc").args(args).exec();