mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
id: Compile preload file for test using cc instead of gcc
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user