mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
Fix zig-cc strlcpy missing issue with swoole+openssl
This commit is contained in:
parent
b1a59dad79
commit
b5b917ce32
@ -67,6 +67,9 @@ class ZigToolchain implements UnixToolchainInterface
|
|||||||
$extra_vars = getenv('SPC_EXTRA_PHP_VARS') ?: '';
|
$extra_vars = getenv('SPC_EXTRA_PHP_VARS') ?: '';
|
||||||
GlobalEnvManager::putenv("SPC_EXTRA_PHP_VARS=php_cv_have_avx512=no php_cv_have_avx512vbmi=no {$extra_vars}");
|
GlobalEnvManager::putenv("SPC_EXTRA_PHP_VARS=php_cv_have_avx512=no php_cv_have_avx512vbmi=no {$extra_vars}");
|
||||||
}
|
}
|
||||||
|
// zig-cc/clang treats strlcpy/strlcat as compiler builtins, so configure link tests pass (HAVE_STRLCPY=1)
|
||||||
|
$extra_vars = getenv('SPC_EXTRA_PHP_VARS') ?: '';
|
||||||
|
GlobalEnvManager::putenv("SPC_EXTRA_PHP_VARS=ac_cv_func_strlcpy=no ac_cv_func_strlcat=no {$extra_vars}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCompilerInfo(): ?string
|
public function getCompilerInfo(): ?string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user