From 40bcbe36a7abe3e316b3c5010006efe0d7ec1958 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 28 Mar 2018 01:06:01 +0300 Subject: [PATCH] Support Haiku multi-threaded build by CMake Issue #97 (bdwgc). * CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && HOST=*-*-haiku*]: Define GC_THREADS and _REENTRANT macros. * CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && HOST=*-*-haiku* && enable_parallel_mark]: Define PARALLEL_MARK macro. * CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && HOST=*-*-haiku* && enable_thread_local_alloc]: Define THREAD_LOCAL_ALLOC macro. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e10a88a..a84b14f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,7 +82,7 @@ MESSAGE("HOST = ${HOST}") IF(CMAKE_USE_PTHREADS_INIT) SET(SRC ${SRC} pthread_start.c pthread_support.c pthread_stop_world.c) # Common defines for most POSIX platforms. - IF( HOST MATCHES .*-.*-aix.*|.*-.*-android.*|.*-.*-cygwin.*|.*-.*-darwin.*|.*-.*-.*freebsd.*|.*-.*-gnu.*|.*-.*-hpux11.*|.*-.*-irix.*|.*-.*-.*linux.*|.*-.*-nacl.*|.*-.*-netbsd.*|.*-.*-openbsd.*|.*-.*-osf.*|.*-.*-solaris.*) + IF( HOST MATCHES .*-.*-aix.*|.*-.*-android.*|.*-.*-cygwin.*|.*-.*-darwin.*|.*-.*-.*freebsd.*|.*-.*-haiku.*|.*-.*-gnu.*|.*-.*-hpux11.*|.*-.*-irix.*|.*-.*-.*linux.*|.*-.*-nacl.*|.*-.*-netbsd.*|.*-.*-openbsd.*|.*-.*-osf.*|.*-.*-solaris.*) ADD_DEFINITIONS("-DGC_THREADS -D_REENTRANT") IF(enable_parallel_mark) ADD_DEFINITIONS("-DPARALLEL_MARK") -- 2.40.0