mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
prevent c compiler not found error
This commit is contained in:
parent
d7627dd81a
commit
68d176ad26
@ -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 '';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user