Mercurial > hg > sonic-visualiser
comparison configure @ 1754:076aca59192f
Use undefined behaviour sanitiser in debug mode
author | Chris Cannam |
---|---|
date | Thu, 07 Dec 2017 13:34:23 +0000 |
parents | e4cf3ec06955 |
children | 9db7ad441ea6 |
comparison
equal
deleted
inserted
replaced
1753:e4cf3ec06955 | 1754:076aca59192f |
---|---|
4423 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" | 4423 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" |
4424 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" | 4424 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" |
4425 | 4425 |
4426 if test "x$GCC" = "xyes"; then | 4426 if test "x$GCC" = "xyes"; then |
4427 CXXFLAGS_ANY="-std=c++11 -fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe" | 4427 CXXFLAGS_ANY="-std=c++11 -fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe" |
4428 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror" | 4428 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror -fsanitize=undefined" |
4429 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0 -O3 -ffast-math" | 4429 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0 -O3 -ffast-math" |
4430 CXXFLAGS_MINIMAL="$CXXFLAGS_ANY -g0 -O0" | 4430 CXXFLAGS_MINIMAL="$CXXFLAGS_ANY -g0 -O0" |
4431 LIBS_DEBUG="$LIBS -lubsan" | |
4431 fi | 4432 fi |
4432 | 4433 |
4433 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" | 4434 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" |
4434 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" | 4435 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" |
4435 | 4436 |
4439 if test "${enable_debug+set}" = set; then : | 4440 if test "${enable_debug+set}" = set; then : |
4440 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 | 4441 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 |
4441 $as_echo "$as_me: enabling debug build" >&6;} | 4442 $as_echo "$as_me: enabling debug build" >&6;} |
4442 QMAKE_CONFIG="debug" | 4443 QMAKE_CONFIG="debug" |
4443 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" | 4444 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" |
4445 LIBS="$LIBS_DEBUG" | |
4444 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" | 4446 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" |
4445 fi | 4447 fi |
4446 | 4448 |
4447 | 4449 |
4448 if test x"$USER_CXXFLAGS" != x; then | 4450 if test x"$USER_CXXFLAGS" != x; then |