diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-24 14:56:13 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-24 14:56:13 +0100 |
commit | cafb2eb464347c47c3cee1a766c3b96ccf66e5fa (patch) | |
tree | 7a77609a887f3ca0a87c1bd3458485d5ba73e0f6 | |
parent | Ram issues fixed (diff) | |
download | 42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.gz 42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.bz2 42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.xz 42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.zst 42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.zip |
Back to clang
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | libft/Makefile | 12 | ||||
-rw-r--r-- | minilibx_linux/Makefile.gen | 2 | ||||
-rw-r--r-- | minilibx_linux/Makefile.mk | 2 |
4 files changed, 6 insertions, 22 deletions
@@ -153,18 +153,10 @@ endif #==================================================================================================# #------------------------------------------ Compiler ----------------------------------------------# #==================================================================================================# -ifeq (${OS}, Darwin) - DBG = -glldb -else - DBG = -ggdb -endif +DBG = -glldb FSANITIZE = -fsanitize=address #--------------------------------------------------------------------------------------------------# -ifeq (${OS}, Darwin) - CC = clang -else - CC = gcc -endif +CC = clang #--------------------------------------------------------------------------------------------------# CFLAGS = -std=c89 CFLAGS += -Wall diff --git a/libft/Makefile b/libft/Makefile index 3073304..8ad24a7 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -118,18 +118,10 @@ OS = $(shell uname) #==============================================================================# #-------------------------------- Compiler ------------------------------------# #==============================================================================# -ifeq (${OS}, Darwin) - DBG = -glldb -else - DBG = -ggdb -endif +DBG = -glldb FSANITIZE = -fsanitize=address #------------------------------------------------------------------------------# -ifeq (${OS}, Darwin) - CC = clang -else - CC = gcc -endif +CC = clang #------------------------------------------------------------------------------# CFLAGS = -std=c89 CFLAGS += -Wall diff --git a/minilibx_linux/Makefile.gen b/minilibx_linux/Makefile.gen index f93b892..5e2b3c1 100644 --- a/minilibx_linux/Makefile.gen +++ b/minilibx_linux/Makefile.gen @@ -15,7 +15,7 @@ DOCP=do_cp -CC = gcc +CC = clang NAME = libmlx.a diff --git a/minilibx_linux/Makefile.mk b/minilibx_linux/Makefile.mk index 4f919ac..189d072 100644 --- a/minilibx_linux/Makefile.mk +++ b/minilibx_linux/Makefile.mk @@ -15,7 +15,7 @@ INC = %%%% HT = %%%% DOCP = %%%% -CC = gcc +CC = clang NAME = libmlx.a |