From 99339ae9f45b55b2af205b8ecf404869a9ac2f4d Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 20 May 2021 11:33:22 +0200 Subject: [PATCH] cmake: add arch-specific support flags --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 523ee83..b78b588 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,14 @@ if(FXLIBC_TARGET STREQUAL gint) add_definitions(-D__SUPPORT_GINT) endif() +if(sh-generic IN_LIST TARGET_FOLDERS) + add_definitions(-D__SUPPORT_ARCH_SH) +endif() + +if(x86-generic IN_LIST TARGET_FOLDERS) + add_definitions(-D__SUPPORT_ARCH_X86) +endif() + # TODO: Preprocessor definitions for configuration # configure_file()