mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 02:15:36 +08:00
prevent c compiler not found error
This commit is contained in:
@@ -121,7 +121,7 @@ class SystemUtil
|
|||||||
|
|
||||||
public static function checkCCFlag(string $flag, string $cc): string
|
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) {
|
if ($ret != 0) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user