Files
ftmemsim-valgrind/memcheck/tests/vbit-test/Makefile.am
Florian Krohm 6dce653240 Add support for building with -fsanitize=undefined.
- add configure option --enable-ubsan 
- add __ubsan helpers (by Julian)

This requires gcc 4.9.2 or later. Not all platforms are supported, though.
With this change and VEX r3099 regression tests pass on amd64
with a valgrind compiled with -fsanitize=undefined.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14995
2015-03-10 16:13:59 +00:00

44 lines
1.1 KiB
Makefile

include $(top_srcdir)/Makefile.all.am
EXTRA_DIST = vbit-test.vgtest vbit-test.stderr.exp
dist_noinst_SCRIPTS = filter_stderr
#----------------------------------------------------------------------------
# Headers
#----------------------------------------------------------------------------
pkginclude_HEADERS =
noinst_HEADERS = vtest.h vbits.h
#----------------------------------------------------------------------------
# vbit_test
#----------------------------------------------------------------------------
noinst_PROGRAMS = vbit-test
if VGCONF_OS_IS_DARWIN
noinst_DSYMS = $(noinst_PROGRAMS)
endif
SOURCES = \
main.c \
unary.c \
binary.c \
ternary.c \
qernary.c \
util.c \
vbits.c \
irops.c \
valgrind.c
vbit_test_SOURCES = $(SOURCES)
vbit_test_CPPFLAGS = $(AM_CPPFLAGS_PRI) \
-I$(top_srcdir)/include \
-I$(top_srcdir)/memcheck \
-I$(top_srcdir)/VEX/pub
vbit_test_CFLAGS = $(AM_CFLAGS_PRI) -std=c99
vbit_test_DEPENDENCIES =
vbit_test_LDADD =
vbit_test_LDFLAGS = $(AM_CFLAGS_PRI) -std=c99 @LIB_UBSAN@