From aec4ef752f31b0641e9a2f7877656245e2e35640 Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Thu, 21 Dec 2023 10:20:10 +0800 Subject: [PATCH] CMakeLists: add PowerPC defines --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git CMakeLists.txt CMakeLists.txt index fa48c706..e4d2f118 100644 --- CMakeLists.txt +++ CMakeLists.txt @@ -75,6 +75,8 @@ # # - Linux (Clang): aarch64 # +# - macOS 10.5, 10.6 (GCC): ppc, ppc64 +# # - Windows (Cygwin GCC, MingW32 GCC, Visual C++): x86, AMD64 # # The build process can be configured through the configuration variables @@ -323,6 +325,8 @@ unset(HAS__aarch64__DEFINED CACHE) unset(HAS__i386_DEFINED CACHE) unset(HAS__x86_64__DEFINED CACHE) + unset(HAS__ppc__DEFINED CACHE) + unset(HAS__ppc64__DEFINED CACHE) endif() endif (APPLE) @@ -330,7 +334,8 @@ check_symbol_exists (__x86_64__ "" HAS__x86_64__DEFINED) check_symbol_exists (__i386 "" HAS__i386_DEFINED) check_symbol_exists (__aarch64__ "" HAS__aarch64__DEFINED) - +check_symbol_exists (__ppc__ "" HAS__ppc__DEFINED) +check_symbol_exists (__ppc64__ "" HAS__ppc64__DEFINED) # Set SystemC_TARGET_ARCH according to the detected # OS/processor/compiler platform @@ -345,6 +350,12 @@ set (_TARGET_ARCH "macosarm64") elseif (HAS__x86_64__DEFINED) set (_TARGET_ARCH "macosx64") + elseif (HAS__ppc__DEFINED) + # Untested platform. + set (_TARGET_ARCH "macosppc") + elseif (HAS__ppc64__DEFINED) + # Untested platform. + set (_TARGET_ARCH "macosppc64") else (N_OSX_ARCHITECTURES GREATER 1) set (_TARGET_ARCH "macosunknown") endif (N_OSX_ARCHITECTURES GREATER 1)