diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-11-30 23:43:01 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-11-30 23:43:01 +0300 |
commit | abbb921e0af973809f45b2f78f9f0d843bdabb8d (patch) | |
tree | 6e9e41dc785caa5277de3961c5a8b16dc7e4d18b | |
parent | 7fef5de3302926bbf42eee50757f1a9a4d99645e (diff) | |
download | bdwgc-abbb921e0af973809f45b2f78f9f0d843bdabb8d.tar.gz |
Compile pthread_start.c on Darwin again by CMake script
(fix of commit 6ccda3052)
* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && !CYGWIN && !MSYS && APPLE]
(SRC): Add pthread_start.c item again.
* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && !CYGWIN && !MSYS] (SRC):
Specify pthread_support.c once (avoid code duplication).
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c9abf78d..5207a6e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,10 +200,13 @@ if (CMAKE_USE_PTHREADS_INIT) set(SRC ${SRC} gc_dlopen.c) if (CYGWIN OR MSYS) set(SRC ${SRC} win32_threads.c) - elseif (APPLE) - set(SRC ${SRC} darwin_stop_world.c pthread_support.c) else() - set(SRC ${SRC} pthread_start.c pthread_stop_world.c pthread_support.c) + set(SRC ${SRC} pthread_start.c pthread_support.c) + if (APPLE) + set(SRC ${SRC} darwin_stop_world.c) + else() + set(SRC ${SRC} pthread_stop_world.c) + endif() endif() if (HOST MATCHES .*-.*-hpux10.*) message(FATAL_ERROR "HP/UX 10 POSIX threads are not supported.") |