doc: Suppress fontconfig warnings from Leak Sanitizer running pspp-output.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Dec 2020 05:55:57 +0000 (21:55 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Dec 2020 06:04:43 +0000 (22:04 -0800)
Otherwise building the docs fails if one builds with Address Sanitizer or
Leak Sanitizer.

doc/automake.mk

index 5efe61228bbbfac409501458be78afa7d21e0552..4ec6b5dcaec87d6ceb6fd4437ad909c2d10bfae1 100644 (file)
@@ -210,7 +210,7 @@ $(FIGURE_SPVS): $(pspp)
        $(AM_V_at)mv $@.tmp $@
 
 # In some cases, the tutorial only wants some parts of the output.
-convert = $(AM_V_GEN)$(pspp_output) convert $< $@
+convert = $(AM_V_GEN)LSAN_OPTIONS="suppressions=$(abs_top_srcdir)/tests/lsan.supp:print_suppressions=0:$$LSAN_OPTIONS" $(pspp_output) convert $< $@
 doc/pspp-figures/tutorial2a.spv: doc/pspp-figures/tutorial2.spv $(pspp_output)
        $(convert) --command='Descriptives'
 doc/pspp-figures/tutorial2b.spv: doc/pspp-figures/tutorial2.spv $(pspp_output)