diff --git a/.appveyor.yml b/.appveyor.yml index ff2686d4adc..cc90d86420f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,5 +1,6 @@ version: 1.0.{build} image: + - Visual Studio 2017 - Visual Studio 2019 shallow_clone: true @@ -10,19 +11,20 @@ environment: - BUILD: GCC - BUILD: MSVC +matrix: + exclude: + - image: Visual Studio 2017 + BUILD: MSVC + - image: Visual Studio 2019 + BUILD: GCC + install: - set "PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH%" - set MSYSTEM=MINGW64 - - set PreferredToolArchitecture=x64 build_script: - bash -lc "exec 0Win32Proj') end - if _ACTION:sub(3) == "2015" or _ACTION:sub(3) == "2017" or _ACTION:sub(3) == "llvm" then + if _ACTION:sub(3) == "2015" or _ACTION:sub(3) == "2017" or _ACTION:sub(3) == "2019" or _ACTION:sub(3) == "llvm" then _p(2,'x64') end if (_ACTION:sub(3) == "2017" or _ACTION:sub(3) == "llvm") diff --git a/scripts/src/tools.lua b/scripts/src/tools.lua index 25adcfbf7dd..09f8739e30a 100644 --- a/scripts/src/tools.lua +++ b/scripts/src/tools.lua @@ -133,6 +133,15 @@ files { configuration { "mingw*" or "vs*" } targetextension ".exe" +-- workaround for https://developercommunity.visualstudio.com/content/problem/752372/vs2019-v1631-c-internal-compiler-error-when-zi-opt.html +-- should be fixed in 16.5 +configuration { "Debug", "vs2019" } + if _OPTIONS["vs"]==nil then + flags { + "NoEditAndContinue", + } + end + configuration { } strip() @@ -749,6 +758,15 @@ files { configuration { "mingw*" or "vs*" } targetextension ".exe" +-- workaround for https://developercommunity.visualstudio.com/content/problem/752372/vs2019-v1631-c-internal-compiler-error-when-zi-opt.html +-- should be fixed in 16.5 +configuration { "Debug", "vs2019" } + if _OPTIONS["vs"]==nil then + flags { + "NoEditAndContinue", + } + end + configuration { } strip()