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:
parent
78eef43d50
commit
f6bfdd16f9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue