Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS-9533 [8.0]: Introduce cmake option to enable probuilds #5514

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2225,6 +2225,9 @@ ENDIF()

option(WITH_PERCONA_TELEMETRY "Build Percona Telemetry component" OFF)

option(WITH_PERCONA_PROBUILD "Build Percona Server Pro variant" OFF)
option(PROBUILD "Build Percona Server Pro variant (an alias for WITH_PERCONA_PROBUILD)" OFF)

# Utility target to build every executable tagged with ADD_TEST.
ADD_CUSTOM_TARGET(unittest_all)

Expand Down
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)
satya-bodapati marked this conversation as resolved.
Show resolved Hide resolved
ENDIF()

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