mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Generate default.supp at compile-time, not configure-time.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8994
This commit is contained in:
parent
47586fdeac
commit
ffbb6cb7b0
@ -28,6 +28,7 @@ SUPP_FILES = \
|
||||
glibc-2.2-LinuxThreads-helgrind.supp \
|
||||
glibc-2.X-drd.supp \
|
||||
exp-ptrcheck.supp
|
||||
DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
|
||||
|
||||
dist_val_DATA = $(SUPP_FILES) default.supp
|
||||
|
||||
@ -66,7 +67,10 @@ if VGP_PPC64_AIX5
|
||||
# Ditto
|
||||
endif
|
||||
|
||||
default.supp: $(SUPP_FILES)
|
||||
default.supp: $(DEFAULT_SUPP_FILES)
|
||||
echo "# This is a generated file, composed of the following suppression rules:" > default.supp
|
||||
echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
|
||||
cat $(DEFAULT_SUPP_FILES) >> default.supp
|
||||
|
||||
## Preprend @PERL@ because tests/vg_regtest isn't executable
|
||||
regtest: check
|
||||
@ -94,7 +98,7 @@ EXTRA_DIST = \
|
||||
install-exec-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(valdir)
|
||||
|
||||
all-local:
|
||||
all-local: default.supp
|
||||
mkdir -p $(inplacedir)
|
||||
rm -f $(addprefix $(inplacedir)/,default.supp $(SUPP_FILES))
|
||||
ln -s ../default.supp $(inplacedir)
|
||||
|
||||
20
configure.in
20
configure.in
@ -209,6 +209,10 @@ if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
|
||||
fi
|
||||
|
||||
|
||||
# This variable will collect the individual suppression files
|
||||
# depending on the results of autoconf
|
||||
DEFAULT_SUPP=""
|
||||
AC_SUBST(DEFAULT_SUPP)
|
||||
|
||||
AC_MSG_CHECKING([for a supported OS])
|
||||
AC_SUBST(VG_OS)
|
||||
@ -458,10 +462,6 @@ else
|
||||
fi
|
||||
|
||||
|
||||
# This variable will collect the individual suppression files
|
||||
# depending on the results of autoconf
|
||||
DEFAULT_SUPP=""
|
||||
AC_SUBST(DEFAULT_SUPP)
|
||||
|
||||
|
||||
GLIBC_VERSION=""
|
||||
@ -1687,15 +1687,3 @@ cat<<EOF
|
||||
Default supp files: ${DEFAULT_SUPP}
|
||||
|
||||
EOF
|
||||
|
||||
cat<<EOF > default.supp
|
||||
# This is a generated file, composed of the following suppression rules:
|
||||
#
|
||||
# ${DEFAULT_SUPP}
|
||||
#
|
||||
|
||||
EOF
|
||||
|
||||
for file in ${DEFAULT_SUPP} ; do
|
||||
cat ${srcdir}/$file >> default.supp
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user