Skip to content

Commit e0a2a8b

Browse files
committed
Add logs for adding dependency extensions
1 parent fd53dbb commit e0a2a8b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

extension/BuildPhpExtension/private/Add-Extension.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ Function Add-Extension {
3535
Set-Content -Encoding "ASCII" -Path $Extension-task.bat -Value $bat_content
3636
$builder = "$currentDirectory\php-sdk\phpsdk-$($Config.vs_version)-$($Config.Arch).bat"
3737
$task = (Get-Item -Path "." -Verbose).FullName + "\$Extension-task.bat"
38-
& $builder -t $task
38+
$suffix = "php_" + (@(
39+
$Config.name,
40+
$Config.ref,
41+
$Config.php_version,
42+
$Config.ts,
43+
$Config.vs_version,
44+
$Config.arch
45+
) -join "-")
46+
& $builder -t $task | Tee-Object -FilePath "build-$suffix.txt"
3947
$includePath = "$currentDirectory\php-dev\include"
4048
New-Item -Path $includePath\ext -Name $Extension -ItemType "directory" | Out-Null
4149
Get-ChildItem -Path (Get-Location).Path -Recurse -Include '*.h', '*.c' | Copy-Item -Destination "$includePath\ext\$Extension"

0 commit comments

Comments
 (0)