Add build function check for current OS and update validation logic

This commit is contained in:
crazywhalecc
2025-12-10 13:38:25 +08:00
parent 66d3af518b
commit 458af6ac78
5 changed files with 57 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ use StaticPHP\Attribute\Package\Validate;
use StaticPHP\Attribute\PatchDescription;
use StaticPHP\Config\PackageConfig;
use StaticPHP\DI\ApplicationContext;
use StaticPHP\Exception\EnvironmentException;
use StaticPHP\Exception\SPCException;
use StaticPHP\Exception\WrongUsageException;
use StaticPHP\Package\Package;
@@ -529,6 +530,12 @@ class php extends TargetPackage
$package->runStage([$this, 'unixBuildSharedExt']);
}
#[BuildFor('Windows')]
public function buildWin(TargetPackage $package): void
{
throw new EnvironmentException('Not implemented');
}
/**
* Patch phpize and php-config if needed
*/