Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6683f83

Browse files
committed
several details
1 parent a314409 commit 6683f83

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

makefile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
# Warnings valid for both C and C++
88
CWARNSCPP= \
9-
# -pedantic \ /* warns if we use jump tables */
109
-Wextra \
1110
-Wshadow \
1211
-Wsign-compare \
@@ -15,9 +14,11 @@ CWARNSCPP= \
1514
-Wredundant-decls \
1615
-Wdisabled-optimization \
1716
-Wdouble-promotion \
18-
-Wstrict-aliasing=3 # not accepted by clang \
19-
-Wno-aggressive-loop-optimizations # not accepted by clang \
20-
-Wlogical-op # not accepted by clang \
17+
-Wstrict-aliasing=3 \
18+
-Wno-aggressive-loop-optimizations \
19+
-Wlogical-op \
20+
-Werror \
21+
# -pedantic # warns if we use jump tables \
2122
# the next warnings generate too much noise, so they are disabled
2223
# -Wconversion -Wno-sign-conversion \
2324
# -Wsign-conversion \
@@ -41,14 +42,12 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
4142
# -g -DLUA_USER_H='"ltests.h"'
4243
# -pg -malign-double
4344
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
44-
# (in clang, '-ftrapv' for runtime checks of integer overflows)
45+
# ('-ftrapv' for runtime checks of integer overflows)
4546
# -fsanitize=undefined -ftrapv -fno-inline
4647
TESTS= -DLUA_USER_H='"ltests.h"' -O0
4748

48-
# -mtune=native -fomit-frame-pointer
49-
# -fno-stack-protector
50-
# -DLUA_NILINTABLE
51-
LOCAL = $(TESTS) $(CWARNS) -g -DEXTERNMEMCHECK
49+
50+
# LOCAL = $(TESTS) $(CWARNS) -g
5251

5352

5453

@@ -59,8 +58,8 @@ MYLIBS= -ldl -lreadline
5958

6059

6160
CC= gcc
62-
CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors
63-
AR= ar rcu
61+
CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors -fno-stack-protector -fno-common
62+
AR= ar rc
6463
RANLIB= ranlib
6564
RM= rm -f
6665

0 commit comments

Comments
 (0)