Skip to content

Commit

Permalink
PS-9533: Introduce cmake option to enable probuilds
Browse files Browse the repository at this point in the history
Add `WITH_PERCONA_PROBUILD` cmake option that enables pro features.
The`PRO_BUILD` cmake option is an alias for `WITH_PERCONA_PROBUILD`.
From source code we have to use `#ifdef HAVE_PERCONA_PROBUILD` for pro features.
  • Loading branch information
inikep committed Dec 4, 2024
1 parent f01c613 commit c657dba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
#cmakedefine HAVE_GCC_SYNC_BUILTINS 1
#cmakedefine HAVE_VALGRIND
#cmakedefine HAVE_PERCONA_TELEMETRY
#cmakedefine HAVE_PERCONA_PROBUILD
#cmakedefine HAVE_SYS_GETTID 1
#cmakedefine HAVE_PTHREAD_GETTHREADID_NP 1
#cmakedefine HAVE_PTHREAD_THREADID_NP 1
Expand Down
5 changes: 5 additions & 0 deletions configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ IF(WITH_PERCONA_TELEMETRY)
SET(HAVE_PERCONA_TELEMETRY 1)
ENDIF()

IF(WITH_PERCONA_PROBUILD OR PROBUILD)
SET(MYSQL_SERVER_SUFFIX "-pro")
SET(HAVE_PERCONA_PROBUILD 1)
ENDIF()

# Check for gettid() system call
CHECK_C_SOURCE_COMPILES("
#include <sys/types.h>
Expand Down

0 comments on commit c657dba

Please sign in to comment.