mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 21:34:53 +08:00
21 lines
409 B
PHP
21 lines
409 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\extension;
|
|
|
|
use SPC\builder\Extension;
|
|
use SPC\util\CustomExt;
|
|
|
|
#[CustomExt('zlib')]
|
|
class zlib extends Extension
|
|
{
|
|
public function getUnixConfigureArg(): string
|
|
{
|
|
if ($this->builder->getPHPVersionID() >= 80400) {
|
|
return '--with-zlib';
|
|
}
|
|
return '--with-zlib --with-zlib-dir="' . BUILD_ROOT_PATH . '"';
|
|
}
|
|
}
|