Commit 28070b4a authored by neverlord's avatar neverlord

fixed 32bit build on MacOS

parent 72caf95d
...@@ -64,15 +64,23 @@ set(boost_context third_party/boost_context/) ...@@ -64,15 +64,23 @@ set(boost_context third_party/boost_context/)
# add third_party boost_context sources # add third_party boost_context sources
if(APPLE) if(APPLE)
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set_property(SOURCE
${boost_context}/src/asm/fcontext_i386_sysv_macho_gas.S
PROPERTY LANGUAGE CXX)
set(fcontext_asm ${boost_context}/src/asm/fcontext_i386_sysv_macho_gas.S)
else()
set_property(SOURCE set_property(SOURCE
${boost_context}/src/asm/fcontext_x86_64_sysv_macho_gas.S ${boost_context}/src/asm/fcontext_x86_64_sysv_macho_gas.S
PROPERTY LANGUAGE CXX) PROPERTY LANGUAGE CXX)
set(fcontext_asm ${boost_context}/src/asm/fcontext_x86_64_sysv_macho_gas.S)
endif()
set(LIBCPPA_SRC set(LIBCPPA_SRC
${LIBCPPA_SRC} ${LIBCPPA_SRC}
${boost_context}/src/stack_utils_posix.cpp ${boost_context}/src/stack_utils_posix.cpp
${boost_context}/src/stack_allocator_posix.cpp ${boost_context}/src/stack_allocator_posix.cpp
${boost_context}/src/fcontext.cpp ${boost_context}/src/fcontext.cpp
${boost_context}/src/asm/fcontext_x86_64_sysv_macho_gas.S ${fcontext_asm}
) )
elseif(UNIX) elseif(UNIX)
if(CMAKE_SIZEOF_VOID_P EQUAL 4) if(CMAKE_SIZEOF_VOID_P EQUAL 4)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment