blob: d29bbbc1c1ef6bb2f439e72afe08c09631c02a5c [file] [log] [blame]
diff --git a/build.rs b/build.rs
index 20cf4a0..3b6adc5 100644
--- a/build.rs
+++ b/build.rs
@@ -25,7 +25,8 @@ fn check_func(function_name: &str) -> bool {
writeln!(&mut test_file, "}}").unwrap();
}
- let output = Command::new("rustc").
+ let rustc = env::var("RUSTC").unwrap();
+ let output = Command::new(rustc).
arg(&test_file_name).
arg("--out-dir").arg(&out_dir).
arg("-l").arg("udev").