refactor and add more linux extensions and libraries

This commit is contained in:
crazywhalecc
2023-03-26 22:27:51 +08:00
parent 17e0265ed0
commit 84b1732683
38 changed files with 1059 additions and 360 deletions

View File

@@ -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 '';
}