Skip to content

Commit

Permalink
Patch config.w32.h to get rid of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Nov 26, 2024
1 parent 566cb5b commit 1d5117a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/winext/devpack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ try{
$sa = New-Object -ComObject Shell.Application
$dirname = ($sa.NameSpace($zipdest).Items() | Select-Object -Index 0).Name

# patch config.w32.h
$configw32path = "$ToolsPath\$dirname\include\main\config.w32.h"
$configw32 = Get-Content -Raw $configw32path
$configw32 = $configw32 -Replace "#\s*define\s+PHP_LINKER_MAJOR\s+.+", '// $0'
$configw32 = $configw32 -Replace "#\s*define\s+PHP_LINKER_MINOR\s+.+", '// $0'
[IO.File]::WriteAllText($configw32path, $configw32)

info "Done unzipping devpack, generate env.bat."

# Since setup-php only provides Release version PHP, yet we only support Release
Expand Down

0 comments on commit 1d5117a

Please sign in to comment.