diff options
Diffstat (limited to '')
| -rw-r--r-- | makefile | 17 |
1 files changed, 10 insertions, 7 deletions
| @@ -14,12 +14,14 @@ CWARNSCPP= \ | |||
| 14 | -Wwrite-strings \ | 14 | -Wwrite-strings \ |
| 15 | -Wredundant-decls \ | 15 | -Wredundant-decls \ |
| 16 | -Wdisabled-optimization \ | 16 | -Wdisabled-optimization \ |
| 17 | # the next warnings generate to much noise, so they are disabled | 17 | -Waggregate-return \ |
| 18 | # -Wdouble-promotion \ | 18 | -Wdouble-promotion \ |
| 19 | #-Wno-aggressive-loop-optimizations # not accepted by clang \ | ||
| 20 | #-Wlogical-op # not accepted by clang \ | ||
| 21 | # the next warnings generate too much noise, so they are disabled | ||
| 19 | # -Wconversion -Wno-sign-conversion \ | 22 | # -Wconversion -Wno-sign-conversion \ |
| 20 | # -Wsign-conversion \ | 23 | # -Wsign-conversion \ |
| 21 | # -Wconversion \ | 24 | # -Wconversion \ |
| 22 | # -Wlogical-op \ | ||
| 23 | # -Wstrict-overflow=2 \ | 25 | # -Wstrict-overflow=2 \ |
| 24 | # -Wformat=2 \ | 26 | # -Wformat=2 \ |
| 25 | # -Wcast-qual \ | 27 | # -Wcast-qual \ |
| @@ -33,7 +35,7 @@ CWARNSC= -Wdeclaration-after-statement \ | |||
| 33 | -Wold-style-definition \ | 35 | -Wold-style-definition \ |
| 34 | 36 | ||
| 35 | 37 | ||
| 36 | CWARNS= $(CWARNSCPP) $(CWARNSC) | 38 | CWARNS= $(CWARNSCPP) $(CWARNSC) |
| 37 | 39 | ||
| 38 | 40 | ||
| 39 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' | 41 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' |
| @@ -42,9 +44,10 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) | |||
| 42 | # -DLUA_USE_CTYPE -DLUA_USE_APICHECK | 44 | # -DLUA_USE_CTYPE -DLUA_USE_APICHECK |
| 43 | # (in clang, '-ftrapv' for runtime checks of integer overflows) | 45 | # (in clang, '-ftrapv' for runtime checks of integer overflows) |
| 44 | # -fsanitize=undefined -ftrapv | 46 | # -fsanitize=undefined -ftrapv |
| 45 | # TESTS= -DLUA_USER_H='"ltests.h"' | 47 | TESTS= -DLUA_USER_H='"ltests.h"' |
| 46 | 48 | ||
| 47 | # -mtune=native -fomit-frame-pointer | 49 | # -mtune=native -fomit-frame-pointer |
| 50 | # -fno-stack-protector | ||
| 48 | LOCAL = $(TESTS) $(CWARNS) -g | 51 | LOCAL = $(TESTS) $(CWARNS) -g |
| 49 | 52 | ||
| 50 | 53 | ||
| @@ -52,10 +55,10 @@ LOCAL = $(TESTS) $(CWARNS) -g | |||
| 52 | # enable Linux goodies | 55 | # enable Linux goodies |
| 53 | MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_COMPAT_5_2 | 56 | MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_COMPAT_5_2 |
| 54 | MYLDFLAGS= $(LOCAL) -Wl,-E | 57 | MYLDFLAGS= $(LOCAL) -Wl,-E |
| 55 | MYLIBS= -ldl -lreadline -lhistory -lncurses | 58 | MYLIBS= -ldl -lreadline |
| 56 | 59 | ||
| 57 | 60 | ||
| 58 | CC= clang-3.6 | 61 | CC= clang-3.8 |
| 59 | CFLAGS= -Wall -O2 $(MYCFLAGS) | 62 | CFLAGS= -Wall -O2 $(MYCFLAGS) |
| 60 | AR= ar rcu | 63 | AR= ar rcu |
| 61 | RANLIB= ranlib | 64 | RANLIB= ranlib |
