Skip to content

Commit

Permalink
Disable ASAN automatically on make release
Browse files Browse the repository at this point in the history
  • Loading branch information
mookums committed Nov 19, 2023
1 parent cb1842b commit 01b8a8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ endif
RELEASE_LDFLAGS := $(LDFLAGS)

# debug link flags:
ifndef LOST_DISABLE_ASAN
DISABLE_ASAN = $(or $(LOST_DISABLE_ASAN),$(release))

ifeq ($(DISABLE_ASAN),1)
LDFLAGS := $(LDFLAGS)
else
LDFLAGS := $(LDFLAGS) -fsanitize=address
endif

Expand Down

0 comments on commit 01b8a8a

Please sign in to comment.