      # Use static MSVCRT libraries
      foreach(configuration
              in
-@@ -122,7 +122,7 @@ set(ASM_FAILURE_MSG "The build will fall back on building with C code\n")
+@@ -121,7 +121,7 @@ set(ASM_FAILURE_MSG "The build will fall back on building with C code\n")
  set(ASM_FAILURE_MSG "${ASM_FAILURE_MSG}Note that this may be unsafe, as the C code requires tail-call optimizations to remove")
  set(ASM_FAILURE_MSG "${ASM_FAILURE_MSG} the stack frame for certain calls. If the compiler does not do this, then unknown device")
  set(ASM_FAILURE_MSG "${ASM_FAILURE_MSG} extensions will suffer from a corrupted stack.")

 
     add_library(loader-opt OBJECT ${OPT_LOADER_SRCS})
     add_dependencies(loader-opt loader_asm_gen_files)
@@ -232,14 +232,16 @@ else()
         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-typedef-redefinition")
     endif()
 

From 52ea4183d9f3462acc02fe0af18413b5c1c3c40b Mon Sep 17 00:00:00 2001
From: DeadSix27 <DeadSix27@users.noreply.github.com>
Date: Sat, 21 Sep 2019 14:53:16 +0200
Subject: [PATCH] fix cross compiling with mingw

---
 CMakeLists.txt        |  2 +-
