Skip to content

Commit 8efcbf9

Browse files
committed
id: Compile preload file for test using cc instead of gcc
1 parent 208fa8e commit 8efcbf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/by-util/test_id.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ fn compile_preload_file_with_gcc(
483483
c_file: &str,
484484
so_file: &str,
485485
) -> Result<std::process::ExitStatus, String> {
486-
Ok(std::process::Command::new("gcc")
486+
Ok(std::process::Command::new("cc")
487487
.args(["-fPIC", "-shared", "-o", &so_file, &c_file])
488488
.status()
489-
.map_err(|_| "`gcc` is not installed")?)
489+
.map_err(|_| "`cc` command is not available")?)
490490
}
491491

492492
#[test]

0 commit comments

Comments
 (0)