prevent c compiler not found error

This commit is contained in:
crazywhalecc 2023-09-23 14:09:29 +08:00 committed by Jerry Ma
parent d7627dd81a
commit 68d176ad26

View File

@ -121,7 +121,7 @@ class SystemUtil
public static function checkCCFlag(string $flag, string $cc): string
{
[$ret] = shell()->execWithResult("echo | {$cc} -E -x c - {$flag}");
[$ret] = shell()->execWithResult("echo | {$cc} -E -x c - {$flag} 2>/dev/null");
if ($ret != 0) {
return '';
}