Skip to content

Commit 32f82ba

Browse files
committed
Updated build scripts
1 parent d11ffb7 commit 32f82ba

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

make/tools.mk

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,20 @@ else ifeq ($(PLATFORM),BSD)
8585
endif
8686

8787
ifeq ($(DEBUG),1)
88-
CFLAGS_EXT += -Og -g3 -DLSP_DEBUG -fsanitize=address
89-
CXXFLAGS_EXT += -Og -g3 -DLSP_DEBUG -fsanitize=address
90-
EXE_FLAGS_EXT += -fsanitize=address
91-
SO_FLAGS_EXT += -fsanitize=address
88+
CFLAGS_EXT += -Og -g3 -DLSP_DEBUG
89+
CXXFLAGS_EXT += -Og -g3 -DLSP_DEBUG
9290
else
9391
CFLAGS_EXT += -O2
9492
CXXFLAGS_EXT += -O2
9593
endif
9694

95+
ifeq ($(ASAN),1)
96+
CFLAGS_EXT += -fsanitize=address
97+
CXXFLAGS_EXT += -fsanitize=address
98+
EXE_FLAGS_EXT += -fsanitize=address
99+
SO_FLAGS_EXT += -fsanitize=address
100+
endif
101+
97102
ifeq ($(PROFILE),1)
98103
CFLAGS_EXT += -pg -DLSP_PROFILE
99104
CXXFLAGS_EXT += -pg -DLSP_PROFILE

0 commit comments

Comments
 (0)