Add getResolvedPackageClosure method to DependencyResolver for improved package resolution

This commit is contained in:
crazywhalecc
2026-07-16 14:36:35 +08:00
parent 8a7cf24b70
commit 01a1db85b1
14 changed files with 512 additions and 144 deletions

View File

@@ -129,7 +129,7 @@ class postgresql extends LibraryPackage
public function buildUnix(PackageInstaller $installer, PackageBuilder $builder): void
{
$spc_config = new SPCConfigUtil(['no_php' => true, 'libs_only_deps' => true]);
$config = $spc_config->getPackageDepsConfig('postgresql', array_keys($installer->getResolvedPackages()), include_suggests: $builder->getOption('with-suggests', false));
$config = $spc_config->getPackageDepsConfig('postgresql', array_keys($installer->getResolvedPackages()));
$env_vars = [
'CFLAGS' => $config['cflags'] . ' -std=c17',