mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
SPC_DEFAULT_C_FLAGS renamed to SPC_DEFAULT_CFLAGS
This commit is contained in:
@@ -34,7 +34,7 @@ class libjxl extends LibraryPackage
|
||||
);
|
||||
|
||||
if ($toolchain instanceof ZigToolchain) {
|
||||
$cflags = getenv('SPC_DEFAULT_C_FLAGS') ?: getenv('CFLAGS') ?: '';
|
||||
$cflags = getenv('SPC_DEFAULT_CFLAGS') ?: getenv('CFLAGS') ?: '';
|
||||
$has_avx512 = str_contains($cflags, '-mavx512') || str_contains($cflags, '-march=x86-64-v4');
|
||||
if (!$has_avx512) {
|
||||
$cmake->addConfigureArgs(
|
||||
|
||||
@@ -81,7 +81,7 @@ trait frankenphp
|
||||
$libs = $config['libs'];
|
||||
|
||||
// Go's gcc driver doesn't automatically link against -lgcov or -lrt. Ugly, but necessary fix.
|
||||
if ((str_contains((string) getenv('SPC_DEFAULT_C_FLAGS'), '-fprofile') ||
|
||||
if ((str_contains((string) getenv('SPC_DEFAULT_CFLAGS'), '-fprofile') ||
|
||||
str_contains((string) getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS'), '-fprofile')) &&
|
||||
$toolchain instanceof GccNativeToolchain) {
|
||||
$cflags .= ' -Wno-error=missing-profile';
|
||||
|
||||
Reference in New Issue
Block a user