Skip to content

Commit f585cc4

Browse files
committed
attempt
1 parent f43e915 commit f585cc4

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

src/SPC/builder/windows/library/libmpdec.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace SPC\builder\windows\library;
66

7+
use SPC\store\FileSystem;
8+
79
class libmpdec extends WindowsLibraryBase
810
{
911
public const NAME = 'libmpdec';
@@ -27,5 +29,13 @@ protected function build(): void
2729
}
2830
}
2931
copy($makefile_dir . '\mpdecimal.h', BUILD_INCLUDE_PATH . '\mpdecimal.h');
32+
33+
// Disable dllimport for static linking: the header defaults to
34+
// __declspec(dllimport) when _DLL is defined, idk if php builds with /MD
35+
FileSystem::replaceFileStr(
36+
BUILD_INCLUDE_PATH . '\mpdecimal.h',
37+
'#elif defined(_DLL)',
38+
'#elif 0'
39+
);
3040
}
3141
}

src/globals/test-extensions.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
$test_php_version = [
1616
// '8.1',
1717
// '8.2',
18-
'8.3',
18+
// '8.3',
1919
// '8.4',
2020
'8.5',
2121
// 'git',
2222
];
2323

2424
// test os (macos-15-intel, macos-15, ubuntu-latest, windows-latest are available)
2525
$test_os = [
26-
'macos-15-intel', // bin/spc for x86_64
27-
'macos-15', // bin/spc for arm64
28-
'ubuntu-latest', // bin/spc-alpine-docker for x86_64
29-
'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30-
'ubuntu-24.04', // bin/spc for x86_64
31-
'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
32-
'ubuntu-24.04-arm', // bin/spc for arm64
26+
// 'macos-15-intel', // bin/spc for x86_64
27+
// 'macos-15', // bin/spc for arm64
28+
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
29+
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30+
// 'ubuntu-24.04', // bin/spc for x86_64
31+
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
32+
// 'ubuntu-24.04-arm', // bin/spc for arm64
3333
'windows-2022', // .\bin\spc.ps1
3434
'windows-2025',
3535
];

0 commit comments

Comments
 (0)