Skip to content

Commit e9f9658

Browse files
committed
Use clang for cache invalidation
1 parent 36a29b2 commit e9f9658

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use bindgen::Formatter;
22
use std::fs::File;
33
use std::io::Write;
4-
use std::path::{Path, PathBuf};
4+
use std::path::PathBuf;
55
use std::process::Command;
66
use std::{env, fs};
77

@@ -20,9 +20,7 @@ fn main() {
2020
println!("cargo:rustc-link-arg=--sysroot={sysroot}");
2121
}
2222
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-
}
23+
cache_build.compiler("clang");
2624
// Running IDE on anything other than linux will fail, so ignore compile error
2725
let _ = cache_build.file("builtins/cache.c").try_compile("cache").ok();
2826
}

0 commit comments

Comments
 (0)