mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
id: Compile preload file for test using cc instead of gcc
This commit is contained in:
parent
208fa8e7f8
commit
8efcbf9ada
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue