diff options
author | Jeff King <peff@peff.net> | 2022-10-18 22:15:33 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-28 00:12:22 +0200 |
commit | 86fa96860b42d13dac3b1023817dfc177a91324c (patch) | |
tree | e6e58f37eea7c8431e8e79a563f63532908b2a34 | |
parent | Downmerge a handful of topics for 2.38.2 (diff) | |
download | git-86fa96860b42d13dac3b1023817dfc177a91324c.tar.xz git-86fa96860b42d13dac3b1023817dfc177a91324c.zip |
Makefile: force -O0 when compiling with SANITIZE=leak
Cherry pick commit d3775de0 (Makefile: force -O0 when compiling with
SANITIZE=leak, 2022-10-18), as otherwise the leak checker at GitHub
Actions CI seems to fail with a false positive.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1338,6 +1338,7 @@ BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS endif ifneq ($(filter leak,$(SANITIZERS)),) BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS +BASIC_CFLAGS += -O0 SANITIZE_LEAK = YesCompiledWithIt endif ifneq ($(filter address,$(SANITIZERS)),) |