id: Compile preload file for test using cc instead of gcc

This commit is contained in:
Teemu Pätsi 2025-04-20 23:21:09 +03:00
parent 208fa8e7f8
commit 8efcbf9ada
No known key found for this signature in database
GPG key ID: 5494F73B045AB692

View file

@ -483,10 +483,10 @@ fn compile_preload_file_with_gcc(
c_file: &str,
so_file: &str,
) -> Result<std::process::ExitStatus, String> {
Ok(std::process::Command::new("gcc")
Ok(std::process::Command::new("cc")
.args(["-fPIC", "-shared", "-o", &so_file, &c_file])
.status()
.map_err(|_| "`gcc` is not installed")?)
.map_err(|_| "`cc` command is not available")?)
}
#[test]