Navigation Menu

Skip to content

Commit

Permalink
add enable fast mutexes option for independent build. refs #1760
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentoku committed Jun 23, 2013
1 parent e0be19a commit aa96eba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -217,6 +217,12 @@ else()
COMPILE_DEFINITIONS "FORCE_FAST_MUTEX_DISABLED=1")
endif()

option(WITH_FAST_MUTEXES "Enable fast mutex" OFF)
if(WITH_FAST_MUTEXES)
set_property(TARGET ha_mroonga APPEND PROPERTY
COMPILE_DEFINITIONS "MY_PTHREAD_FASTMUTEX")
endif()

if(CMAKE_COMPILER_IS_GNUCXX)
set(MYSQL_CFLAGS "${MYSQL_CFLAGS} -Werror -fno-implicit-templates -fno-exceptions -fno-rtti -felide-constructors")
endif()
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -299,6 +299,9 @@ AC_ARG_ENABLE(fast_mutexes,
if test "$enable_fast_mutexes" = "no"; then
AC_DEFINE(FORCE_FAST_MUTEX_DISABLED, [1],
[Define to 1 if force fast mutext disabled])
elif test "$enable_fast_mutexes" = "yes"; then
AC_DEFINE(MY_PTHREAD_FASTMUTEX, [1],
[Define to 1 if fast mutext enabled])
fi

AC_ARG_ENABLE(dtrace,
Expand Down

0 comments on commit aa96eba

Please sign in to comment.