Add mpir for windows gmp support

This commit is contained in:
crazywhalecc
2026-04-08 22:12:13 +08:00
parent 9a0d239b58
commit d7ee946864
3 changed files with 57 additions and 1 deletions

View File

@@ -82,10 +82,13 @@ ext-gettext:
arg-type: with-path
ext-gmp:
type: php-extension
depends:
depends@unix:
- gmp
depends@windows:
- mpir
php-extension:
arg-type: with-path
arg-type@windows: with
ext-iconv:
type: php-extension
depends@unix:

9
config/pkg/lib/mpir.yml Normal file
View File

@@ -0,0 +1,9 @@
mpir:
type: library
artifact:
source:
type: git
url: 'https://github.com/winlibs/mpir.git'
rev: master
static-libs@windows:
- mpir_a.lib