mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +08:00
Only build libcoro if COROUTINE_IMPL == libcoro
It doesn't build at all on mac m1
This commit is contained in:
parent
b43f1640a4
commit
23de546586
@ -87,6 +87,7 @@ if(COMPILE_EIO)
|
|||||||
target_link_libraries(fdbrpc_sampling PRIVATE eio)
|
target_link_libraries(fdbrpc_sampling PRIVATE eio)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${COROUTINE_IMPL} STREQUAL libcoro)
|
||||||
set(CORO_SRCS libcoroutine/Common.c libcoroutine/Coro.c)
|
set(CORO_SRCS libcoroutine/Common.c libcoroutine/Coro.c)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
list(APPEND CORO_SRCS libcoroutine/asm.S)
|
list(APPEND CORO_SRCS libcoroutine/asm.S)
|
||||||
@ -106,3 +107,4 @@ if(USE_VALGRIND)
|
|||||||
endif()
|
endif()
|
||||||
target_link_libraries(fdbrpc PRIVATE coro)
|
target_link_libraries(fdbrpc PRIVATE coro)
|
||||||
target_link_libraries(fdbrpc_sampling PRIVATE coro)
|
target_link_libraries(fdbrpc_sampling PRIVATE coro)
|
||||||
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user