SDL: Fix broken mingw x86_64 buildscript

From 59d7dd36155e41fa228091985a7d85025b036b35 Mon Sep 17 00:00:00 2001
From: Xander <[EMAIL REDACTED]>
Date: Sun, 28 Jan 2024 21:43:08 +0000
Subject: [PATCH] Fix broken mingw x86_64 buildscript

---
 build-scripts/cmake-toolchain-mingw64-x86_64.cmake | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/build-scripts/cmake-toolchain-mingw64-x86_64.cmake b/build-scripts/cmake-toolchain-mingw64-x86_64.cmake
index c8135ba9b0c2..be3efd9429e4 100644
--- a/build-scripts/cmake-toolchain-mingw64-x86_64.cmake
+++ b/build-scripts/cmake-toolchain-mingw64-x86_64.cmake
@@ -3,6 +3,7 @@ set(CMAKE_SYSTEM_PROCESSOR x86_64)
 
 find_program(CMAKE_C_COMPILER NAMES x86_64-w64-mingw32-gcc)
 find_program(CMAKE_CXX_COMPILER NAMES x86_64-w64-mingw32-g++)
+find_program(CMAKE_RC_COMPILER NAMES x86_64-w64-mingw32-windres)
 
 if(NOT CMAKE_C_COMPILER)
 	message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")
@@ -11,3 +12,7 @@ endif()
 if(NOT CMAKE_CXX_COMPILER)
 	message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.")
 endif()
+
+if(NOT CMAKE_RC_COMPILER)
+        message(FATAL_ERROR "Failed to find CMAKE_RC_COMPILER.")
+endif()