Should work now

This commit is contained in:
Maieul BOYER 2024-08-04 14:28:42 +00:00
parent 8187eb4b15
commit 0078321b7e
3 changed files with 12 additions and 9 deletions

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ # # By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2024/08/04 12:57:09 by maiboyer ### ########.fr # # Updated: 2024/08/04 14:28:29 by maiboyer ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -34,6 +34,7 @@ PMAKE =
ifndef PMAKE_DISABLE ifndef PMAKE_DISABLE
ifeq ($(shell uname), Linux) ifeq ($(shell uname), Linux)
PMAKE = -j$(shell grep -c ^processor /proc/cpuinfo) PMAKE = -j$(shell grep -c ^processor /proc/cpuinfo)
CFLAGS_ADDITIONAL += -DPRINT_BACKTRACE
endif endif
ifeq ($(shell uname), Darwin) ifeq ($(shell uname), Darwin)
PMAKE = -j$(shell sysctl -n hw.ncpu) PMAKE = -j$(shell sysctl -n hw.ncpu)
@ -45,7 +46,6 @@ endif
# CFLAGS_ADDITIONAL += -DNVALGRIND # CFLAGS_ADDITIONAL += -DNVALGRIND
# TODO: REMOVE THIS WHEN FINISHING THIS: # TODO: REMOVE THIS WHEN FINISHING THIS:
CFLAGS_ADDITIONAL += -DPRINT_BACKTRACE
CFLAGS_ADDITIONAL += -gcolumn-info -g3 CFLAGS_ADDITIONAL += -gcolumn-info -g3
CFLAGS_ADDITIONAL += '-DERROR=((void)printf("ERROR HERE: " __FILE__ ":%d in %s\n", __LINE__, __func__), 1)' CFLAGS_ADDITIONAL += '-DERROR=((void)printf("ERROR HERE: " __FILE__ ":%d in %s\n", __LINE__, __func__), 1)'
#CFLAGS_ADDITIONAL += -O2 #CFLAGS_ADDITIONAL += -O2

View file

@ -6,18 +6,13 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */ /* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/07 11:08:03 by maiboyer #+# #+# */ /* Created: 2024/05/07 11:08:03 by maiboyer #+# #+# */
/* Updated: 2024/08/01 06:38:36 by maiboyer ### ########.fr */ /* Updated: 2024/08/04 14:28:13 by maiboyer ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include "./gnu_source.h" #include "./gnu_source.h"
#include "me/fs/fs.h" #include "me/fs/fs.h"
#include "me/types.h" #include "me/types.h"
#include <dlfcn.h>
#include <execinfo.h>
#include <link.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef BASE_PATH #ifndef BASE_PATH
# define BASE_PATH "/no_base_path_defined/" # define BASE_PATH "/no_base_path_defined/"

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */ /* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/10 17:53:46 by maiboyer #+# #+# */ /* Created: 2024/07/10 17:53:46 by maiboyer #+# #+# */
/* Updated: 2024/07/10 17:54:49 by maiboyer ### ########.fr */ /* Updated: 2024/08/04 14:28:12 by maiboyer ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -15,4 +15,12 @@
# define _GNU_SOURCE # define _GNU_SOURCE
# if defined(PRINT_BACKTRACE) || defined(BACKTRACE_DEEP)
# include <dlfcn.h>
# include <execinfo.h>
# include <link.h>
# include <stdio.h>
# include <stdlib.h>
# endif
#endif /* GNU_SOURCE_H */ #endif /* GNU_SOURCE_H */