From 7d74f6a839afd44a445e9a0a4e294963ea7870e6 Mon Sep 17 00:00:00 2001 From: crueter Date: Tue, 26 Aug 2025 21:34:02 -0400 Subject: [PATCH] [cmake] explicitly forbid building on x86 msvc (fuck you microsoft) Signed-off-by: crueter --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d019731cfc..b5fdb49682 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -304,6 +304,12 @@ endif() message(STATUS "Target architecture: ${ARCHITECTURE}") +if (MSVC AND ARCHITECTURE_x86) + message(FATAL_ERROR "Attempting to build with the x86 environment is not supported. \ + This can typically happen if you used the Developer Command Prompt from the start menu;\ + instead, run vcvars64.bat directly, located at C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat") +endif() + if (UNIX) add_definitions(-DYUZU_UNIX=1) endif()