tools: do not sanitize build tools. It's OK if they leak a bit.

Especially as our code does not actually leak as far as we can see. It looks
like librsvg might not play well with -fsanitize=address (possibly having real
leaks or false positives).
This commit is contained in:
Jehan 2023-02-22 10:57:36 +01:00
parent e0f070a649
commit 0b75fbd91c

View file

@ -64,8 +64,11 @@ if ENABLE_VECTOR_ICONS
endif
# Build tools which must be built for the build platform.
# Note: librsvg does not work well with at least -fsanitize=address so we
# disable all sanitizers which might have been added as CFLAGS.
colorsvg2png$(BUILD_EXEEXT): colorsvg2png.c
$(CC_FOR_BUILD) -o $@ $< $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
-fno-sanitize=all \
$(NATIVE_GLIB_LIBS) $(NATIVE_GLIB_CFLAGS) $(NATIVE_SVG_LIBS) $(NATIVE_SVG_CFLAGS)
all-local: colorsvg2png$(BUILD_EXEEXT)