diff --git a/appveyor.yml b/appveyor.yml index fa0dd6e662..b70696c0cd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -63,7 +63,8 @@ before_build: if (-not (Test-Path env:wxUSE_STL)) { $env:wxUSE_STL = '0' } if (-not (Test-Path env:wxUSE_WEBVIEW_EDGE)) { $env:wxUSE_WEBVIEW_EDGE = '0' } if (($env:compiler -ne "msys2") -and ($env:compiler -ne "cygwin")) { - gc include\wx\msw\setup.h | + $txt = gc include\wx\msw\setup.h + Write-Output $txt | %{$_ -replace "define wxUSE_STL 0", "define wxUSE_STL $env:wxUSE_STL"} | %{$_ -replace "define wxUSE_WEBVIEW_EDGE 0", "define wxUSE_WEBVIEW_EDGE $env:wxUSE_WEBVIEW_EDGE"} | sc include\wx\msw\setup.h