Skip to content

Commit

Permalink
Updated build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Aug 13, 2023
1 parent f138e0e commit a122d7e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions make/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,20 @@ else ifeq ($(PLATFORM),BSD)
endif

ifeq ($(DEBUG),1)
CFLAGS_EXT += -Og -g3 -DLSP_DEBUG -fsanitize=address
CXXFLAGS_EXT += -Og -g3 -DLSP_DEBUG -fsanitize=address
EXE_FLAGS_EXT += -fsanitize=address
SO_FLAGS_EXT += -fsanitize=address
CFLAGS_EXT += -Og -g3 -DLSP_DEBUG
CXXFLAGS_EXT += -Og -g3 -DLSP_DEBUG
else
CFLAGS_EXT += -O2
CXXFLAGS_EXT += -O2
endif

ifeq ($(ASAN),1)
CFLAGS_EXT += -fsanitize=address
CXXFLAGS_EXT += -fsanitize=address
EXE_FLAGS_EXT += -fsanitize=address
SO_FLAGS_EXT += -fsanitize=address
endif

ifeq ($(PROFILE),1)
CFLAGS_EXT += -pg -DLSP_PROFILE
CXXFLAGS_EXT += -pg -DLSP_PROFILE
Expand Down

0 comments on commit a122d7e

Please sign in to comment.