cmake: Remove x86-64 warnings

It's supported now
This commit is contained in:
TellowKrinkle 2020-08-19 04:16:49 -05:00 committed by tellowkrinkle
parent 35eac7c82f
commit 91326e1d93
1 changed files with 0 additions and 16 deletions

View File

@ -175,27 +175,11 @@ endif()
include(TargetArch) include(TargetArch)
target_architecture(PCSX2_TARGET_ARCHITECTURES) target_architecture(PCSX2_TARGET_ARCHITECTURES)
if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386") if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386")
if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "x86_64" AND (CMAKE_BUILD_TYPE MATCHES "Release" OR PACKAGE_MODE))
message(FATAL_ERROR "
The code for ${PCSX2_TARGET_ARCHITECTURES} support is not ready yet.
For now compile with -DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake
or with
--cross-multilib passed to build.sh")
endif()
message(STATUS "Compiling a ${PCSX2_TARGET_ARCHITECTURES} build on a ${CMAKE_HOST_SYSTEM_PROCESSOR} host.") message(STATUS "Compiling a ${PCSX2_TARGET_ARCHITECTURES} build on a ${CMAKE_HOST_SYSTEM_PROCESSOR} host.")
else() else()
message(FATAL_ERROR "Unsupported architecture: ${PCSX2_TARGET_ARCHITECTURES}") message(FATAL_ERROR "Unsupported architecture: ${PCSX2_TARGET_ARCHITECTURES}")
endif() endif()
# Print a clear message that most architectures are not supported
if(NOT (${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386"))
message(WARNING "
PCSX2 does not support the ${PCSX2_TARGET_ARCHITECTURES} architecture and has no plans yet to support it.
It would need a complete rewrite of the core emulator and a lot of time.
You can still run a i386 binary if you install all the i386 libraries (runtime and dev).")
endif()
if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386") if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386")
# * -fPIC option was removed for multiple reasons. # * -fPIC option was removed for multiple reasons.
# - Code only supports the x86 architecture. # - Code only supports the x86 architecture.