mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
SPC_DEFAULT_C_FLAGS renamed to SPC_DEFAULT_CFLAGS
This commit is contained in:
@@ -124,8 +124,8 @@ class LibraryPackage extends Package
|
||||
// get environment variable
|
||||
$env = getenv($this->getSnakeCaseName() . '_CFLAGS') ?: '';
|
||||
// get default c flags
|
||||
$arch_c_flags = getenv('SPC_DEFAULT_C_FLAGS') ?: '';
|
||||
if (!empty(getenv('SPC_DEFAULT_C_FLAGS')) && !str_contains($env, $arch_c_flags)) {
|
||||
$arch_c_flags = getenv('SPC_DEFAULT_CFLAGS') ?: '';
|
||||
if (!empty(getenv('SPC_DEFAULT_CFLAGS')) && !str_contains($env, $arch_c_flags)) {
|
||||
$env .= ' ' . $arch_c_flags;
|
||||
}
|
||||
return trim($env);
|
||||
|
||||
Reference in New Issue
Block a user