build: adding the debug flag to cxx
This commit is contained in:
parent
d522f89c00
commit
6790f1c03c
1 changed files with 3 additions and 2 deletions
|
|
@ -21,10 +21,11 @@ RM = rm -rf
|
||||||
# Flags
|
# Flags
|
||||||
# Mandatory flags for 42
|
# Mandatory flags for 42
|
||||||
CXXFLAGS = -Werror -Wextra -Wall -std=c++98 -I./includes/
|
CXXFLAGS = -Werror -Wextra -Wall -std=c++98 -I./includes/
|
||||||
# Flags to debug and have the dependences (can be removed for correction)
|
# Flags to have the dependences (can be removed for correction)
|
||||||
CXXFLAGS += -MMD
|
CXXFLAGS += -MMD
|
||||||
|
# Flags to have the debug (can be removed for correction)
|
||||||
DEBUG += -g3 -fsanitize=address
|
DEBUG += -g3 -fsanitize=address
|
||||||
|
CXXFLAGS += $(DEBUG)
|
||||||
|
|
||||||
# Sources
|
# Sources
|
||||||
SRC = Bureaucrat.cpp \
|
SRC = Bureaucrat.cpp \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue