aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlat9nq <[email protected]>2020-05-01 22:17:29 -0400
committerlat9nq <[email protected]>2020-05-01 22:17:29 -0400
commita290aac5b3d657f436a53a58c8bb26416a28d0fc (patch)
tree46d223203f59515d4397c9f751aad5dcedaeb0ef
parentfd005585f6f02879723d21e4659a5cddc5c24071 (diff)
downloadyuzu-mainline-a290aac5b3d657f436a53a58c8bb26416a28d0fc.tar.gz
yuzu-mainline-a290aac5b3d657f436a53a58c8bb26416a28d0fc.zip
Make compatible with the current MinGW cross-compiler
The Docker image was just updated to use Arch Linux instead of Ubuntu. This PR sets the compiler names to reflect how they are installed on the Arch Linux Docker image. Fixes "x86_64-w64-mingw32-g++-posix is not a full path and was not found in the PATH." errors in CMake.
-rw-r--r--CMakeModules/MinGWCross.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeModules/MinGWCross.cmake b/CMakeModules/MinGWCross.cmake
index 29ecd1ac4..b268e72d8 100644
--- a/CMakeModules/MinGWCross.cmake
+++ b/CMakeModules/MinGWCross.cmake
@@ -10,8 +10,8 @@ set(SDL2_PATH ${MINGW_PREFIX})
set(MINGW_TOOL_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-)
# Specify the cross compiler
-set(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc-posix)
-set(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++-posix)
+set(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc)
+set(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++)
set(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}windres)
# Mingw tools