small updates

This commit is contained in:
Roberto Ierusalimschy 2017-01-31 19:17:47 -02:00
parent 94c1b3a8ee
commit e354c6355e
1 changed files with 10 additions and 7 deletions

View File

@ -14,12 +14,14 @@ CWARNSCPP= \
-Wwrite-strings \ -Wwrite-strings \
-Wredundant-decls \ -Wredundant-decls \
-Wdisabled-optimization \ -Wdisabled-optimization \
# the next warnings generate to much noise, so they are disabled -Waggregate-return \
# -Wdouble-promotion \ -Wdouble-promotion \
#-Wno-aggressive-loop-optimizations # not accepted by clang \
#-Wlogical-op # not accepted by clang \
# the next warnings generate too much noise, so they are disabled
# -Wconversion -Wno-sign-conversion \ # -Wconversion -Wno-sign-conversion \
# -Wsign-conversion \ # -Wsign-conversion \
# -Wconversion \ # -Wconversion \
# -Wlogical-op \
# -Wstrict-overflow=2 \ # -Wstrict-overflow=2 \
# -Wformat=2 \ # -Wformat=2 \
# -Wcast-qual \ # -Wcast-qual \
@ -33,7 +35,7 @@ CWARNSC= -Wdeclaration-after-statement \
-Wold-style-definition \ -Wold-style-definition \
CWARNS= $(CWARNSCPP) $(CWARNSC) CWARNS= $(CWARNSCPP) $(CWARNSC)
# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
@ -42,9 +44,10 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK # -DLUA_USE_CTYPE -DLUA_USE_APICHECK
# (in clang, '-ftrapv' for runtime checks of integer overflows) # (in clang, '-ftrapv' for runtime checks of integer overflows)
# -fsanitize=undefined -ftrapv # -fsanitize=undefined -ftrapv
# TESTS= -DLUA_USER_H='"ltests.h"' TESTS= -DLUA_USER_H='"ltests.h"'
# -mtune=native -fomit-frame-pointer # -mtune=native -fomit-frame-pointer
# -fno-stack-protector
LOCAL = $(TESTS) $(CWARNS) -g LOCAL = $(TESTS) $(CWARNS) -g
@ -52,10 +55,10 @@ LOCAL = $(TESTS) $(CWARNS) -g
# enable Linux goodies # enable Linux goodies
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_COMPAT_5_2 MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_COMPAT_5_2
MYLDFLAGS= $(LOCAL) -Wl,-E MYLDFLAGS= $(LOCAL) -Wl,-E
MYLIBS= -ldl -lreadline -lhistory -lncurses MYLIBS= -ldl -lreadline
CC= clang-3.6 CC= clang-3.8
CFLAGS= -Wall -O2 $(MYCFLAGS) CFLAGS= -Wall -O2 $(MYCFLAGS)
AR= ar rcu AR= ar rcu
RANLIB= ranlib RANLIB= ranlib