diff --git a/tests/by-util/test_id.rs b/tests/by-util/test_id.rs index 9dac99bce..eaffbd8d4 100644 --- a/tests/by-util/test_id.rs +++ b/tests/by-util/test_id.rs @@ -483,10 +483,10 @@ fn compile_preload_file_with_gcc( c_file: &str, so_file: &str, ) -> Result { - 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]