Avoid hard-coded rustc when building wrappers
This commit is contained in:
parent
22c5249f68
commit
629eab79c1
5 changed files with 18 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue