first
This commit is contained in:
parent
500562e256
commit
287b1178fd
4
Makefile
4
Makefile
@ -6,7 +6,7 @@
|
|||||||
# By: apommier <apommier@student.42.fr> +#+ +:+ +#+ #
|
# By: apommier <apommier@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2022/03/06 12:50:24 by apommier #+# #+# #
|
# Created: 2022/03/06 12:50:24 by apommier #+# #+# #
|
||||||
# Updated: 2022/03/06 15:57:38 by apommier ### ########.fr #
|
# Updated: 2022/03/06 16:02:30 by apommier ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -38,3 +38,5 @@ fclean: clean
|
|||||||
re: fclean all
|
re: fclean all
|
||||||
|
|
||||||
.PHONY: all clean fclean re bonus
|
.PHONY: all clean fclean re bonus
|
||||||
|
|
||||||
|
-include ./valgrind.mk
|
||||||
12
ignoreliberror
Normal file
12
ignoreliberror
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
leak readline
|
||||||
|
Memcheck:Leak
|
||||||
|
...
|
||||||
|
fun:readline
|
||||||
|
}
|
||||||
|
{
|
||||||
|
leak add_history
|
||||||
|
Memcheck:Leak
|
||||||
|
...
|
||||||
|
fun:add_history
|
||||||
|
}
|
||||||
23
valgrind.mk
Normal file
23
valgrind.mk
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# valgrind.mk :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: apommier <apommier@student.42.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2021/12/10 15:19:04 by jodufour #+# #+# #
|
||||||
|
# Updated: 2022/03/06 16:04:33 by apommier ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
VG_OPT = --suppressions=ignoreliberror
|
||||||
|
VG_OPT += --leak-check=full
|
||||||
|
VG_OPT += --show-leak-kinds=all
|
||||||
|
VG_OPT += --track-fds=yes
|
||||||
|
VG_OPT += --trace-children=yes
|
||||||
|
|
||||||
|
valgrind:
|
||||||
|
${MAKE} ${NAME} DEBUG=1
|
||||||
|
$@ ${VG_OPT} ./${NAME}
|
||||||
|
|
||||||
|
.PHONY: valgrind
|
||||||
Loading…
Reference in New Issue
Block a user