]> granicus.if.org Git - gc/commitdiff
Fix missing win32_threads.c compilation for Cygwin (CMake)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 3 May 2017 08:09:50 +0000 (11:09 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 24 May 2017 22:05:31 +0000 (01:05 +0300)
* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && *-*-cygwin*] (SRC): Add
win32_threads.c.
* CMakeLists.txt (win32_threads): Remove commented out variable
definition.

CMakeLists.txt

index 846740d6e55339b90acaca4fded04c31e5bb3bef..70f1502b2eac34bff8f6ece421e110c5d6bd418a 100644 (file)
@@ -152,9 +152,7 @@ IF(CMAKE_USE_PTHREADS_INIT)
         IF ( HOST MATCHES .*-.*-cygwin.*)
                 ADD_DEFINITIONS("-DGC_THREADS")
                 ADD_DEFINITIONS("-DTHREAD_LOCAL_ALLOC")
-                SET(SRC ${SRC} thread_local_alloc.c)
-#TODO
-#       win32_threads=true
+                SET(SRC ${SRC} thread_local_alloc.c win32_threads.c)
         ENDIF()
         IF ( HOST MATCHES .*-.*-darwin.*)
                 ADD_DEFINITIONS("-DGC_DARWIN_THREADS")
@@ -182,7 +180,6 @@ ENDIF(CMAKE_USE_PTHREADS_INIT)
 
 IF(CMAKE_USE_WIN32_THREADS_INIT)
         ADD_DEFINITIONS("-DGC_THREADS")
-        #win32_threads=true   TODO
         IF(enable_parallel_mark)
                 ADD_DEFINITIONS("-DTHREAD_LOCAL_ALLOC")
                 SET(SRC ${SRC} thread_local_alloc.c)