23 lines
453 B
PHP
Raw Normal View History

2023-04-15 18:45:11 +08:00
<?php
declare(strict_types=1);
namespace SPC\builder\extension;
use SPC\builder\Extension;
use SPC\util\CustomExt;
#[CustomExt('ffi')]
class ffi extends Extension
{
public function getUnixConfigureArg(bool $shared = false): string
2023-04-15 18:45:11 +08:00
{
2025-05-21 13:19:51 +07:00
return '--with-ffi' . ($shared ? '=shared' : '') . ' --enable-zend-signals';
2023-04-15 18:45:11 +08:00
}
public function getWindowsConfigureArg(bool $shared = false): string
{
return '--with-ffi';
}
2023-04-15 18:45:11 +08:00
}