From 8efcbf9adae59b7074d29b2ac8ff8a4083df7d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20P=C3=A4tsi?= Date: Sun, 20 Apr 2025 23:21:09 +0300 Subject: [PATCH] id: Compile preload file for test using cc instead of gcc --- tests/by-util/test_id.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]