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

Skip to content

Commit e354c63

Browse files
committed
small updates
1 parent 94c1b3a commit e354c63

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ CWARNSCPP= \
1414
-Wwrite-strings \
1515
-Wredundant-decls \
1616
-Wdisabled-optimization \
17-
# the next warnings generate to much noise, so they are disabled
18-
# -Wdouble-promotion \
17+
-Waggregate-return \
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
1922
# -Wconversion -Wno-sign-conversion \
2023
# -Wsign-conversion \
2124
# -Wconversion \
22-
# -Wlogical-op \
2325
# -Wstrict-overflow=2 \
2426
# -Wformat=2 \
2527
# -Wcast-qual \
@@ -33,7 +35,7 @@ CWARNSC= -Wdeclaration-after-statement \
3335
-Wold-style-definition \
3436

3537

36-
CWARNS= $(CWARNSCPP) $(CWARNSC)
38+
CWARNS= $(CWARNSCPP) $(CWARNSC)
3739

3840

3941
# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
@@ -42,20 +44,21 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
4244
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
4345
# (in clang, '-ftrapv' for runtime checks of integer overflows)
4446
# -fsanitize=undefined -ftrapv
45-
# TESTS= -DLUA_USER_H='"ltests.h"'
47+
TESTS= -DLUA_USER_H='"ltests.h"'
4648

4749
# -mtune=native -fomit-frame-pointer
50+
# -fno-stack-protector
4851
LOCAL = $(TESTS) $(CWARNS) -g
4952

5053

5154

5255
# enable Linux goodies
5356
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_COMPAT_5_2
5457
MYLDFLAGS= $(LOCAL) -Wl,-E
55-
MYLIBS= -ldl -lreadline -lhistory -lncurses
58+
MYLIBS= -ldl -lreadline
5659

5760

58-
CC= clang-3.6
61+
CC= clang-3.8
5962
CFLAGS= -Wall -O2 $(MYCFLAGS)
6063
AR= ar rcu
6164
RANLIB= ranlib

0 commit comments

Comments
 (0)