aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/makefile b/makefile
index 9367ffd7..1263f7fd 100644
--- a/makefile
+++ b/makefile
@@ -6,7 +6,6 @@
6 6
7# Warnings valid for both C and C++ 7# Warnings valid for both C and C++
8CWARNSCPP= \ 8CWARNSCPP= \
9 # -pedantic \ /* warns if we use jump tables */
10 -Wextra \ 9 -Wextra \
11 -Wshadow \ 10 -Wshadow \
12 -Wsign-compare \ 11 -Wsign-compare \
@@ -15,9 +14,11 @@ CWARNSCPP= \
15 -Wredundant-decls \ 14 -Wredundant-decls \
16 -Wdisabled-optimization \ 15 -Wdisabled-optimization \
17 -Wdouble-promotion \ 16 -Wdouble-promotion \
18 -Wstrict-aliasing=3 # not accepted by clang \ 17 -Wstrict-aliasing=3 \
19 -Wno-aggressive-loop-optimizations # not accepted by clang \ 18 -Wno-aggressive-loop-optimizations \
20 -Wlogical-op # not accepted by clang \ 19 -Wlogical-op \
20 -Werror \
21 # -pedantic # warns if we use jump tables \
21 # the next warnings generate too much noise, so they are disabled 22 # the next warnings generate too much noise, so they are disabled
22 # -Wconversion -Wno-sign-conversion \ 23 # -Wconversion -Wno-sign-conversion \
23 # -Wsign-conversion \ 24 # -Wsign-conversion \
@@ -41,14 +42,12 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
41# -g -DLUA_USER_H='"ltests.h"' 42# -g -DLUA_USER_H='"ltests.h"'
42# -pg -malign-double 43# -pg -malign-double
43# -DLUA_USE_CTYPE -DLUA_USE_APICHECK 44# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
44# (in clang, '-ftrapv' for runtime checks of integer overflows) 45# ('-ftrapv' for runtime checks of integer overflows)
45# -fsanitize=undefined -ftrapv -fno-inline 46# -fsanitize=undefined -ftrapv -fno-inline
46TESTS= -DLUA_USER_H='"ltests.h"' -O0 47TESTS= -DLUA_USER_H='"ltests.h"' -O0
47 48
48# -mtune=native -fomit-frame-pointer 49
49# -fno-stack-protector 50# LOCAL = $(TESTS) $(CWARNS) -g
50# -DLUA_NILINTABLE
51LOCAL = $(TESTS) $(CWARNS) -g -DEXTERNMEMCHECK
52 51
53 52
54 53
@@ -59,8 +58,8 @@ MYLIBS= -ldl -lreadline
59 58
60 59
61CC= gcc 60CC= gcc
62CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors 61CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors -fno-stack-protector -fno-common
63AR= ar rcu 62AR= ar rc
64RANLIB= ranlib 63RANLIB= ranlib
65RM= rm -f 64RM= rm -f
66 65