Browse Source

[cmake] explicitly forbid building on x86 msvc (fuck you microsoft)

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/322/head
crueter 7 months ago
parent
commit
7d74f6a839
  1. 6
      CMakeLists.txt

6
CMakeLists.txt

@ -304,6 +304,12 @@ endif()
message(STATUS "Target architecture: ${ARCHITECTURE}") 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) if (UNIX)
add_definitions(-DYUZU_UNIX=1) add_definitions(-DYUZU_UNIX=1)
endif() endif()

Loading…
Cancel
Save