From 79779fec1c634c2f4b1aad64cb32c218f2f7ed92 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 1 Feb 2021 00:51:28 +0100 Subject: [PATCH] Correct test for MSYS2/Cygwin in AppVeyor script There is no "compiler" environment variable, use TOOLSET instead. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index b70696c0cd..55883d54dd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -62,7 +62,7 @@ before_build: $env:PATH = $env:PATH -replace "C:\\Program Files\\Git\\usr\\bin","" 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")) { + if (($env:TOOLSET -ne "msys2") -and ($env:TOOLSET -ne "cygwin")) { $txt = gc include\wx\msw\setup.h Write-Output $txt | %{$_ -replace "define wxUSE_STL 0", "define wxUSE_STL $env:wxUSE_STL"} |