aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-23 16:07:42 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-23 16:07:42 +0100
commite67574a3e74c2f8340aa2ead168136cedb493735 (patch)
tree8dab085d7a3934673e499df572676ab11bf617d0 /Makefile
parentLess cringe name for opti flags (diff)
download42-cub3d-e67574a3e74c2f8340aa2ead168136cedb493735.tar.gz
42-cub3d-e67574a3e74c2f8340aa2ead168136cedb493735.tar.bz2
42-cub3d-e67574a3e74c2f8340aa2ead168136cedb493735.tar.xz
42-cub3d-e67574a3e74c2f8340aa2ead168136cedb493735.tar.zst
42-cub3d-e67574a3e74c2f8340aa2ead168136cedb493735.zip
Fixed floating point exception
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6ed66b4..4c10947 100644
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,7 @@ LFT_SRCS = $(shell find libft/src -name "*.c")
MKDIR = mkdir -p
RM = rm -rf
OS = $(shell uname)
+USER = $(shell w | grep tty7 | awk '{print $$1}')
ifeq (${OS}, Darwin)
SCR_SZE = $(shell osascript -e 'tell application "Finder" to get bounds of window of desktop' \
| tr ',' 'x' | tr -d '\n' | tr -d ' ' | cut -c 5-)
@@ -98,7 +99,13 @@ ifdef ASAN
endif
#--------------------------------------------------------------------------------------------------#
ifdef OPTI
- CFLAGS += -march=ivybridge
+ ifeq (${USER}, salaaad)
+ CFLAGS += -march=broadwell
+ else ifeq (${USER}, jozan)
+ CFLAGS += -march=ivybridge
+ else
+ CFLAGS += -march=native
+ endif
CFLAGS += -O2
CFLAGS += -pipe
endif