mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
phpstan, extension test
This commit is contained in:
parent
a2e0efaed3
commit
154a21fbaf
@ -4,8 +4,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace SPC\builder\unix\library;
|
namespace SPC\builder\unix\library;
|
||||||
|
|
||||||
use SPC\builder\linux\LinuxBuilder;
|
use SPC\builder\linux\library\LinuxLibraryBase;
|
||||||
use SPC\builder\macos\MacOSBuilder;
|
use SPC\builder\macos\library\MacOSLibraryBase;
|
||||||
use SPC\exception\FileSystemException;
|
use SPC\exception\FileSystemException;
|
||||||
use SPC\exception\RuntimeException;
|
use SPC\exception\RuntimeException;
|
||||||
use SPC\exception\WrongUsageException;
|
use SPC\exception\WrongUsageException;
|
||||||
@ -20,8 +20,8 @@ trait libxslt
|
|||||||
*/
|
*/
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
$static_libs = $this->builder instanceof LinuxBuilder ? $this->getStaticLibFiles(include_self: false) : '';
|
$static_libs = $this instanceof LinuxLibraryBase ? $this->getStaticLibFiles(include_self: false) : '';
|
||||||
$cpp = $this->builder instanceof MacOSBuilder ? '-lc++' : '-lstdc++';
|
$cpp = $this instanceof MacOSLibraryBase ? '-lc++' : '-lstdc++';
|
||||||
$ac = UnixAutoconfExecutor::create($this)
|
$ac = UnixAutoconfExecutor::create($this)
|
||||||
->appendEnv([
|
->appendEnv([
|
||||||
'CFLAGS' => "-I{$this->getIncludeDir()}",
|
'CFLAGS' => "-I{$this->getIncludeDir()}",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user