We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a29b2 commit e9f9658Copy full SHA for e9f9658
build.rs
@@ -1,7 +1,7 @@
1
use bindgen::Formatter;
2
use std::fs::File;
3
use std::io::Write;
4
-use std::path::{Path, PathBuf};
+use std::path::PathBuf;
5
use std::process::Command;
6
use std::{env, fs};
7
@@ -20,9 +20,7 @@ fn main() {
20
println!("cargo:rustc-link-arg=--sysroot={sysroot}");
21
}
22
let mut cache_build = cc::Build::new();
23
- if Path::new("/usr/bin/arm-linux-gnu-gcc").exists() {
24
- cache_build.compiler("/usr/bin/arm-linux-gnu-gcc");
25
- }
+ cache_build.compiler("clang");
26
// Running IDE on anything other than linux will fail, so ignore compile error
27
let _ = cache_build.file("builtins/cache.c").try_compile("cache").ok();
28
0 commit comments