Skip to content

Commit fd53dbb

Browse files
committed
Add patch for grpc
1 parent 46188df commit fd53dbb

File tree

1 file changed

+14
-0
lines changed
  • extension/BuildPhpExtension/patches

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$fn = @"
2+
ARG_WITH("grpc", "grpc support", "no");
3+
function CreateFolderIfMissing(path) {
4+
if (!path) return;
5+
if (!FSO.FolderExists(path)) {
6+
WScript.Echo("Creating " + path + "...");
7+
FSO.CreateFolder(path);
8+
}
9+
}
10+
"@
11+
(Get-Content config.w32) | ForEach-Object { $_.Replace('base_dir+"\\ext\\grpc', 'base_dir+"') } | Set-Content config.w32
12+
(Get-Content config.w32) | ForEach-Object { $_.Replace('FSO.CreateFolder', 'CreateFolderIfMissing') } | Set-Content config.w32
13+
(Get-Content config.w32) | ForEach-Object { $_ -replace '/D_WIN32_WINNT=0x600', '/D_WIN32_WINNT=0x600 /FS /std:c11' } | Set-Content config.w32
14+
(Get-Content config.w32) | ForEach-Object { $_.Replace('ARG_WITH("grpc", "grpc support", "no");', $fn) } | Set-Content config.w32

0 commit comments

Comments
 (0)