CMakeLists: Turn generic target path into an error
There's currently no way this path can occur and result in any functioning executable. The recompiler backends are platform-specific. If those platforms aren't available, then it's quite literally impossible to use this library for anything meaningful. Instead of defining a generic architecture and continuing on, notify the developer that their platform is not currently supported.
This commit is contained in:
parent
750ceb9701
commit
df996a8375
1 changed files with 1 additions and 3 deletions
|
@ -98,9 +98,7 @@ else()
|
||||||
detect_architecture("__aarch64__" Aarch64)
|
detect_architecture("__aarch64__" Aarch64)
|
||||||
endif()
|
endif()
|
||||||
if (NOT DEFINED ARCHITECTURE)
|
if (NOT DEFINED ARCHITECTURE)
|
||||||
set(ARCHITECTURE "GENERIC")
|
message(FATAL_ERROR "Unsupported architecture encountered. Ending CMake generation.")
|
||||||
set(ARCHITECTURE_GENERIC 1)
|
|
||||||
add_definitions(-DARCHITECTURE_GENERIC=1)
|
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Target architecture: ${ARCHITECTURE}")
|
message(STATUS "Target architecture: ${ARCHITECTURE}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue