This commit is contained in:
henderkes
2026-04-12 13:30:22 +07:00
parent f43e915341
commit f585cc446a
2 changed files with 18 additions and 8 deletions

View File

@@ -4,6 +4,8 @@ declare(strict_types=1);
namespace SPC\builder\windows\library;
use SPC\store\FileSystem;
class libmpdec extends WindowsLibraryBase
{
public const NAME = 'libmpdec';
@@ -27,5 +29,13 @@ class libmpdec extends WindowsLibraryBase
}
}
copy($makefile_dir . '\mpdecimal.h', BUILD_INCLUDE_PATH . '\mpdecimal.h');
// Disable dllimport for static linking: the header defaults to
// __declspec(dllimport) when _DLL is defined, idk if php builds with /MD
FileSystem::replaceFileStr(
BUILD_INCLUDE_PATH . '\mpdecimal.h',
'#elif defined(_DLL)',
'#elif 0'
);
}
}

View File

@@ -15,7 +15,7 @@ declare(strict_types=1);
$test_php_version = [
// '8.1',
// '8.2',
'8.3',
// '8.3',
// '8.4',
'8.5',
// 'git',
@@ -23,13 +23,13 @@ $test_php_version = [
// test os (macos-15-intel, macos-15, ubuntu-latest, windows-latest are available)
$test_os = [
'macos-15-intel', // bin/spc for x86_64
'macos-15', // bin/spc for arm64
'ubuntu-latest', // bin/spc-alpine-docker for x86_64
'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
'ubuntu-24.04', // bin/spc for x86_64
'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
'ubuntu-24.04-arm', // bin/spc for arm64
// 'macos-15-intel', // bin/spc for x86_64
// 'macos-15', // bin/spc for arm64
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
// 'ubuntu-24.04', // bin/spc for x86_64
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
// 'ubuntu-24.04-arm', // bin/spc for arm64
'windows-2022', // .\bin\spc.ps1
'windows-2025',
];