Commit 3a77383f6012f81ee3cf446c28bb608a38de9a11

SSE4 2019-02-22T04:15:08

- add MinGW to the PATH Signed-off-by: SSE4 <tomskside@gmail.com>

diff --git a/appveyor.yml b/appveyor.yml
index d155b48..fe7319c 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -5,8 +5,7 @@ environment:
         - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
           CMAKE_SH: "CMAKE_SH-NOTFOUND"
           CMAKE_GENERATOR: "MinGW Makefiles"
-          CMAKE_MAKE_PROGRAM: "C:\\mingw-w64\\x86_64-7.2.0-posix-seh-rt_v5-rev1\\mingw64\\bin\\mingw32-make.exe"
-          CC: "C:\\mingw-w64\\x86_64-7.2.0-posix-seh-rt_v5-rev1\\mingw64\\bin\\gcc.exe"
+          MINGW_HOME: "C:\\mingw-w64\\x86_64-7.2.0-posix-seh-rt_v5-rev1\\mingw64\\bin"
         - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
           CMAKE_GENERATOR: "Visual Studio 12 2013"
         - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
@@ -22,5 +21,3 @@ environment:
 
 test_script:
     - python build.py
-on_finish:
-    - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
diff --git a/build.py b/build.py
index 208f41b..4b485fe 100644
--- a/build.py
+++ b/build.py
@@ -21,6 +21,8 @@ def run(command):
         sys.exit(command)
 
 def main():
+    if "MINGW_HOME" in os.environ:
+        os.environ["PATH"] += os.pathsep + os.environ["MINGW_HOME"]
     generator = os.environ["CMAKE_GENERATOR"]
     multi_config = generator.startswith("Visual")
     command = 'cmake . -G "%s"' % generator