mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 22:35:43 +08:00
refactor and add more linux extensions and libraries
This commit is contained in:
@@ -157,8 +157,7 @@ class SystemUtil
|
||||
|
||||
public static function checkCCFlag(string $flag, string $cc): string
|
||||
{
|
||||
$ret = 0;
|
||||
f_exec("echo | {$cc} -E -x c - {$flag}", $dummy, $ret);
|
||||
[$ret] = shell()->execWithResult("echo | {$cc} -E -x c - {$flag}");
|
||||
if ($ret != 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user