From f585cc446a545716082a4c6610e59188aeb0aeeb Mon Sep 17 00:00:00 2001 From: henderkes Date: Sun, 12 Apr 2026 13:30:22 +0700 Subject: [PATCH] attempt --- src/SPC/builder/windows/library/libmpdec.php | 10 ++++++++++ src/globals/test-extensions.php | 16 ++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/SPC/builder/windows/library/libmpdec.php b/src/SPC/builder/windows/library/libmpdec.php index 3468c58e..eda5f5c8 100644 --- a/src/SPC/builder/windows/library/libmpdec.php +++ b/src/SPC/builder/windows/library/libmpdec.php @@ -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' + ); } } diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index b69d7052..cbcecb0e 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -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', ];