New configure --disable-threads-discovery option
authorMichael DeRoy <deroymichael@gmail.com>
Sat, 28 Jul 2018 15:09:06 +0000 (18:09 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 29 Jul 2018 07:31:01 +0000 (10:31 +0300)
(part of commit 7b2813c from Unity-Technologies/bdwgc)

Issue #173 (bdwgc).

* configure.ac (threads-discovery): New AC_ARG_ENABLE.
* configure.ac [$enable_threads_discovery=no]
(GC_NO_THREADS_DISCOVERY): Define macro.

configure.ac

index 9c28962..f95ddab 100644 (file)
@@ -140,6 +140,14 @@ AC_ARG_ENABLE(thread-local-alloc,
         ;;
     esac])
 
+AC_ARG_ENABLE(threads-discovery,
+    [AC_HELP_STRING([--disable-threads-discovery],
+                    [disable threads discovery in GC])])
+if test "${enable_threads_discovery}" = no; then
+    AC_DEFINE([GC_NO_THREADS_DISCOVERY], 1,
+              [Disable threads discovery in GC.])
+fi
+
 AC_ARG_ENABLE(cplusplus,
     [AC_HELP_STRING([--enable-cplusplus], [install C++ support])])