From f6bfdd16f940f7baf07ca328b9c15bb8066213a5 Mon Sep 17 00:00:00 2001 From: SiliconExarch Date: Thu, 26 Aug 2021 21:39:54 +0100 Subject: [PATCH] Fix runtime assert on PPC OS X Passing the -mone-byte-bool flag when building for PPC on OS X overrides the defaults so that sizeof( bool )==1 --- neo/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index a34b1917..da352784 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -295,8 +295,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") elseif(cpu STREQUAL "ppc") CHECK_CXX_COMPILER_FLAG("-arch ppc" cxx_has_arch_ppc) if(cxx_has_arch_ppc) - add_compile_options(-arch ppc) - set(ldflags "${ldflags} -arch ppc") + add_compile_options(-arch ppc -mone-byte-bool) + set(ldflags "${ldflags} -arch ppc -mone-byte-bool") endif() add_compile_options(-mmacosx-version-min=10.4)