Skip to content

Commit

Permalink
Added comments to some BUILD scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi committed Jun 14, 2021
1 parent 193bfdd commit 9c77828
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BUILD/compile-pentium64-asan-max
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
path=`dirname $0`
. "$path/SETUP.sh"

extra_flags="$pentium64_cflags $debug_cflags -lasan -O -g -fsanitize=address -USAFEMALLOC -UFORCE_INIT_OF_VARS -Wno-uninitialized -Wno-maybe-uninitialized"
#
# Enable AddressSanitzer, a fast memory error detector.
# Detects "Out of bounds" and "use-after-free" memory errors
#

extra_flags="$pentium64_cflags $debug_cflags -lasan -O -g -fsanitize=address -USAFEMALLOC -UFORCE_INIT_OF_VARS -Wno-uninitialized -Wno-maybe-uninitialized -DMYSQL_SERVER_SUFFIX=-asan-max"
extra_configs="$pentium_configs $debug_configs $valgrind_configs $max_configs $disable_asan_plugins"
export LDFLAGS="-ldl"

Expand Down
8 changes: 8 additions & 0 deletions BUILD/compile-pentium64-ubsan
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
path=`dirname $0`
. "$path/SETUP.sh"

#
# Enable UBSAN, UndefinedBehaviorSanitizer. Detects undefined behavior like:
# - Using misaligned or null pointer
# - Signed integer overflow
# - Conversion to, from, or between floating-point types which would overflow
# the destination
#

extra_flags="$pentium64_cflags $debug_cflags -fsanitize=undefined -DWITH_UBSAN -Wno-conversion -Wno-uninitialized"
extra_configs="$pentium_configs $debug_configs -DWITH_UBSAN=ON -DMYSQL_MAINTAINER_MODE=NO --without-spider"

Expand Down

0 comments on commit 9c77828

Please sign in to comment.