From b016088493be416180410d9abbc83e8a0887a9ea Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 31 Jan 2021 23:12:08 +0100 Subject: [PATCH] Fix replacement in setup.h done in AppVeyor builds We can't write to the file we're reading from, so use a temporary variable. --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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