0
0
Fork 0
mirror of https://github.com/dhewm/dhewm3.git synced 2025-03-21 10:11:01 +00:00

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
This commit is contained in:
SiliconExarch 2021-08-26 21:39:54 +01:00 committed by Daniel Gibson
parent 78eef43d50
commit f6bfdd16f9

View file

@ -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)