Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
23d05c1c
Commit
23d05c1c
authored
Jun 21, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#53593: Add some instrumentation to improve Valgrind sensitivity.
Implement WITH_VALGRIND for the CMake build.
parent
cda93dfc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
CMakeLists.txt
CMakeLists.txt
+3
-0
config.h.cmake
config.h.cmake
+1
-1
configure.cmake
configure.cmake
+9
-1
No files found.
CMakeLists.txt
View file @
23d05c1c
...
...
@@ -115,6 +115,9 @@ OPTION(ENABLED_PROFILING "Enable profiling" ON)
OPTION
(
CYBOZU
""
OFF
)
OPTION
(
BACKUP_TEST
""
OFF
)
OPTION
(
WITHOUT_SERVER OFF
)
IF
(
UNIX
)
OPTION
(
WITH_VALGRIND
"Valgrind instrumentation"
OFF
)
ENDIF
()
OPTION
(
WITH_UNIT_TESTS
"Compile MySQL with unit tests"
ON
)
MARK_AS_ADVANCED
(
CYBOZU BACKUP_TEST WITHOUT_SERVER DISABLE_SHARED
)
...
...
config.h.cmake
View file @
23d05c1c
...
...
@@ -292,7 +292,7 @@
#define USE_MB 1
#define USE_MB_IDENT 1
#cmakedefine HAVE_VALGRIND
/* Types we may use */
#cmakedefine SIZEOF_CHAR @SIZEOF_CHAR@
...
...
configure.cmake
View file @
23d05c1c
...
...
@@ -777,7 +777,7 @@ ENDIF(NOT HAVE_POSIX_SIGNALS)
# Assume regular sprintf
SET
(
SPRINTFS_RETURNS_INT 1
)
IF
(
CMAKE_COMPILER_IS_GNUXX
)
IF
(
CMAKE_COMPILER_IS_GNU
C
XX
)
CHECK_CXX_SOURCE_COMPILES
(
"
#include <cxxabi.h>
int main(int argc, char **argv)
...
...
@@ -969,6 +969,14 @@ configuration. By default gcc built-in sync functions are used,
if available and 'smp' configuration otherwise."
)
MARK_AS_ADVANCED
(
WITH_ATOMIC_LOCKS MY_ATOMIC_MODE_RWLOCK MY_ATOMIC_MODE_DUMMY
)
IF
(
WITH_VALGRIND
)
CHECK_INCLUDE_FILES
(
"valgrind/memcheck.h;valgrind/valgrind.h"
HAVE_VALGRIND_HEADERS
)
IF
(
HAVE_VALGRIND_HEADERS
)
SET
(
HAVE_VALGRIND 1
)
ENDIF
()
ENDIF
()
#--------------------------------------------------------------------
# Check for IPv6 support
#--------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment