mirror of https://github.com/rusefi/lua.git
no optimizations in test mode + no more compat with 5.2 + a few more
options in comments
This commit is contained in:
parent
b7edf5d2d8
commit
76ff55750e
21
makefile
21
makefile
|
@ -16,12 +16,12 @@ CWARNSCPP= \
|
||||||
-Wdisabled-optimization \
|
-Wdisabled-optimization \
|
||||||
-Waggregate-return \
|
-Waggregate-return \
|
||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
#-Wno-aggressive-loop-optimizations # not accepted by clang \
|
-Wstrict-aliasing=3 # not accepted by clang \
|
||||||
#-Wlogical-op # not accepted by clang \
|
-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
|
# the next warnings generate too much noise, so they are disabled
|
||||||
# -Wconversion -Wno-sign-conversion \
|
# -Wconversion -Wno-sign-conversion \
|
||||||
# -Wsign-conversion \
|
# -Wsign-conversion \
|
||||||
# -Wconversion \
|
|
||||||
# -Wstrict-overflow=2 \
|
# -Wstrict-overflow=2 \
|
||||||
# -Wformat=2 \
|
# -Wformat=2 \
|
||||||
# -Wcast-qual \
|
# -Wcast-qual \
|
||||||
|
@ -35,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"'
|
||||||
|
@ -43,23 +43,24 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
|
||||||
# -pg -malign-double
|
# -pg -malign-double
|
||||||
# -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 -fno-inline
|
||||||
TESTS= -DLUA_USER_H='"ltests.h"'
|
TESTS= -DLUA_USER_H='"ltests.h"' -O0
|
||||||
|
|
||||||
# -mtune=native -fomit-frame-pointer
|
# -mtune=native -fomit-frame-pointer
|
||||||
# -fno-stack-protector
|
# -fno-stack-protector
|
||||||
LOCAL = $(TESTS) $(CWARNS) -g
|
# -DLUA_NILINTABLE
|
||||||
|
LOCAL = $(TESTS) $(CWARNS) -g -DEXTERNMEMCHECK
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# enable Linux goodies
|
# enable Linux goodies
|
||||||
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_COMPAT_5_2
|
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX
|
||||||
MYLDFLAGS= $(LOCAL) -Wl,-E
|
MYLDFLAGS= $(LOCAL) -Wl,-E
|
||||||
MYLIBS= -ldl -lreadline
|
MYLIBS= -ldl -lreadline
|
||||||
|
|
||||||
|
|
||||||
CC= clang-3.8
|
CC= gcc
|
||||||
CFLAGS= -Wall -O2 $(MYCFLAGS)
|
CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors
|
||||||
AR= ar rcu
|
AR= ar rcu
|
||||||
RANLIB= ranlib
|
RANLIB= ranlib
|
||||||
RM= rm -f
|
RM= rm -f
|
||||||
|
|
Loading…
Reference in New Issue