mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
attempt
This commit is contained in:
@@ -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'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user