Skip to content

Commit

Permalink
Merge pull request #85 from biralavor/84-fixing-fsanitize-target-rule…
Browse files Browse the repository at this point in the history
…s-at-makefile

fixing target rule for fsanitize
  • Loading branch information
biralavor authored Nov 4, 2024
2 parents f2de06b + 26be664 commit a60375d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions philo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 15:36:56 by umeneses #+# #+# #
# Updated: 2024/11/03 14:18:24 by umeneses ### ########.fr #
# Updated: 2024/11/04 12:49:59 by umeneses ### ########.fr #
# #
# **************************************************************************** #

Expand Down Expand Up @@ -144,7 +144,7 @@ define bonus
endef

define args_to_test
4 200 200 200 5
4 310 200 100
endef

ifdef WITH_SANITIZE_THREAD
Expand Down Expand Up @@ -240,12 +240,14 @@ drd: re
# valgrind --tool=drd ./$(NAME) $(call args_to_test)
# documentation: https://valgrind.org/docs/manual/drd-manual.html

sani: fclean
sani_t: fclean
$(call sanitize_thread)
./$(NAME) $(call args_to_test)


leaks: fclean
sani_a: fclean
$(call sanitize_address)
./$(NAME) $(call args_to_test)


.PHONY: all clean fclean re bonus go gdb val sani leaks

0 comments on commit a60375d

Please sign in to comment.