diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-01 23:13:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-01 23:13:04 +0300 |
commit | 97b30eda6487c6a7fb7db61dc7af2b0ea006d71d (patch) | |
tree | 471fecfa181585750c78e43f975b03962bd8449f | |
parent | d66f863a4d2b31839b280af4146e9bad09835e23 (diff) | |
download | evol-hercules-97b30eda6487c6a7fb7db61dc7af2b0ea006d71d.tar.gz evol-hercules-97b30eda6487c6a7fb7db61dc7af2b0ea006d71d.tar.bz2 evol-hercules-97b30eda6487c6a7fb7db61dc7af2b0ea006d71d.tar.xz evol-hercules-97b30eda6487c6a7fb7db61dc7af2b0ea006d71d.zip |
Use extended sanity checks and gcc 5.
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | src/Makefile.am | 17 |
2 files changed, 17 insertions, 2 deletions
@@ -12,10 +12,12 @@ mkdir m4 autoreconf -i cd build if [[ "${CMD}" == "default" ]]; then + export CC=gcc-5 ../configure --enable-sanitize elif [[ "${CMD}" == "old" ]]; then ../configure elif [[ "${CMD}" == "gprof" ]]; then + export CC=gcc-5 ../configure --enable-gprof fi make -j3 diff --git a/src/Makefile.am b/src/Makefile.am index a0a68fa..19f8bcb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -91,8 +91,21 @@ SHARED_CFLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -DPCRE_SUPPORT SHARED_LDFLAGS = -avoid-version -Wl,--no-undefined if ENABLE_SANITIZE -SHARED_CFLAGS += -fsanitize=address -SHARED_LDFLAGS += -lasan +#skip -fsanitize=alignment +SHARED_CFLAGS += -fsanitize=address \ +-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable \ +-fsanitize=vla-bound -fsanitize=null -fsanitize=return \ +-fsanitize=signed-integer-overflow -fsanitize=bounds \ +-fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \ +-fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \ +-fsanitize=enum -fsanitize=vptr +SHARED_LDFLAGS += -lasan -lubsan -fsanitize=address \ +-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable \ +-fsanitize=vla-bound -fsanitize=null -fsanitize=return \ +-fsanitize=signed-integer-overflow -fsanitize=bounds \ +-fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \ +-fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \ +-fsanitize=enum -fsanitize=vptr endif if ENABLE_STATIC |