Skip to content

Commit 06464b5

Browse files
committed
Fix options in local extension setup
1 parent 06de342 commit 06464b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/BuildPhpExtension/private/Invoke-Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Function Invoke-Build {
2424
if ($Config.debug_symbols) {
2525
$options += " --enable-debug-pack"
2626
}
27-
Set-Content -Path $task -Value (Get-Content -Path $task -Raw).Replace("OPTIONS", $options)
27+
Set-Content -Path task.bat -Value (Get-Content -Path $task -Raw).Replace("OPTIONS", $options)
2828

2929
$ref = $Config.ref
3030
if($env:ARTIFACT_NAMING_SCHEME -eq 'pecl') {
@@ -38,7 +38,7 @@ Function Invoke-Build {
3838
$Config.vs_version,
3939
$Config.arch
4040
) -join "-")
41-
& $builder -c $Config.vs_version -a $Config.Arch -s $Config.vs_toolset -t $task | Tee-Object -FilePath "build-$suffix.txt"
41+
& $builder -c $Config.vs_version -a $Config.Arch -s $Config.vs_toolset -t task.bat | Tee-Object -FilePath "build-$suffix.txt"
4242
Set-GAGroup end
4343
if(-not(Test-Path "$((Get-Location).Path)\$($Config.build_directory)\php_$($Config.name).dll")) {
4444
throw "Failed to build the extension"

0 commit comments

Comments
 (0)