Skip to content

Commit

Permalink
Fix macOS PowerPC
Browse files Browse the repository at this point in the history
Fixes: #54
  • Loading branch information
barracuda156 committed Jun 18, 2023
1 parent 3974007 commit 8823f49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ if (NOT APPLE OR (APPLE AND (N_OSX_ARCHITECTURES LESS 2)))
unset (HAS__i386_DEFINED CACHE)
unset (HAS__x86_64__DEFINED CACHE)
unset (HAS__ppc__DEFINED CACHE)
unset (HAS__ppc64__DEFINED CACHE)
endif (APPLE)
include (CheckSymbolExists)
check_symbol_exists (__LP64__ "" HAS__LP64__DEFINED)
Expand All @@ -383,6 +384,7 @@ if (NOT APPLE OR (APPLE AND (N_OSX_ARCHITECTURES LESS 2)))
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)
check_symbol_exists (__powerpc "" HAS__powerpc_DEFINED)
endif (NOT APPLE OR (APPLE AND (N_OSX_ARCHITECTURES LESS 2)))

Expand Down Expand Up @@ -504,8 +506,9 @@ elseif (HAS__i386_DEFINED)
set (QT_ARCH "i386")
elseif (HAS__aarch64__DEFINED)
set (QT_ARCH "aarch64")
elseif (HAS__ppc__DEFINED)
set (QT_ARCH "powerpc_mach")
# While it builds, tests are largely broken. Rather disable and have 100% tests pass.
# elseif (HAS__ppc__DEFINED)
# set (QT_ARCH "powerpc_mach")
elseif (HAS__powerpc__DEFINED)
set (QT_ARCH "powerpc_sys5")
else (ENABLE_PTHREADS)
Expand Down

0 comments on commit 8823f49

Please sign in to comment.