@@ -1214,6 +1214,9 @@ PTHREAD_CFLAGS =
12141214SPARSE_FLAGS ?=
12151215SP_EXTRA_FLAGS = -Wno-universal-initializer
12161216
1217+ # For informing GIT-BUILD-OPTIONS of the SANITIZE=leak target
1218+ SANITIZE_LEAK =
1219+
12171220# For the 'coccicheck' target; setting SPATCH_BATCH_SIZE higher will
12181221# usually result in less CPU usage at the cost of higher peak memory.
12191222# Setting it to 0 will feed all files in a single spatch invocation.
@@ -1258,6 +1261,7 @@ BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS
12581261endif
12591262ifneq ($(filter leak,$(SANITIZERS ) ) ,)
12601263BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
1264+ SANITIZE_LEAK = YesCompiledWithIt
12611265endif
12621266ifneq ($(filter address,$(SANITIZERS ) ) ,)
12631267NO_REGEX = NeededForASAN
@@ -2797,6 +2801,7 @@ GIT-BUILD-OPTIONS: FORCE
27972801 @echo NO_UNIX_SOCKETS=\' ' $(subst ' ,' \' ' ,$(subst ' ,' \' ' ,$(NO_UNIX_SOCKETS)))' \' >> $@ +
27982802 @echo PAGER_ENV=\' ' $(subst ' ,' \' ' ,$(subst ' ,' \' ' ,$(PAGER_ENV)))' \' >> $@ +
27992803 @echo DC_SHA1=\' ' $(subst ' ,' \' ' ,$(subst ' ,' \' ' ,$(DC_SHA1)))' \' >> $@ +
2804+ @echo SANITIZE_LEAK=\' ' $(subst ' ,' \' ' ,$(subst ' ,' \' ' ,$(SANITIZE_LEAK)))' \' >> $@ +
28002805 @echo X=\' $(X ) \' >> $@ +
28012806ifdef TEST_OUTPUT_DIRECTORY
28022807 @echo TEST_OUTPUT_DIRECTORY=\''$(subst ','\'',$(subst ','\'',$(TEST_OUTPUT_DIRECTORY)))'\' >>$@+
0 commit comments