From df996a8375afc3e99b6c9b97648b9328933cbb8e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 4 May 2019 00:10:45 -0400 Subject: [PATCH] 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. --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac0967e2..2ccd4391 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,9 +98,7 @@ else() detect_architecture("__aarch64__" Aarch64) endif() if (NOT DEFINED ARCHITECTURE) - set(ARCHITECTURE "GENERIC") - set(ARCHITECTURE_GENERIC 1) - add_definitions(-DARCHITECTURE_GENERIC=1) + message(FATAL_ERROR "Unsupported architecture encountered. Ending CMake generation.") endif() message(STATUS "Target architecture: ${ARCHITECTURE}")