diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-18 15:25:19 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-18 15:25:19 -0300 |
| commit | 6683f83b51bf87cad0980712955c959c4c128e24 (patch) | |
| tree | 1ce5ceda2308dbfd66497ddff46a8dcfed1d76d7 | |
| parent | a314409dba5579b3523460f4e385574fce40aeb2 (diff) | |
| download | lua-6683f83b51bf87cad0980712955c959c4c128e24.tar.gz lua-6683f83b51bf87cad0980712955c959c4c128e24.tar.bz2 lua-6683f83b51bf87cad0980712955c959c4c128e24.zip | |
several details
| -rw-r--r-- | makefile | 21 |
1 files changed, 10 insertions, 11 deletions
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | # Warnings valid for both C and C++ | 7 | # Warnings valid for both C and C++ |
| 8 | CWARNSCPP= \ | 8 | CWARNSCPP= \ |
| 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 |
| 46 | TESTS= -DLUA_USER_H='"ltests.h"' -O0 | 47 | TESTS= -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 | ||
| 51 | LOCAL = $(TESTS) $(CWARNS) -g -DEXTERNMEMCHECK | ||
| 52 | 51 | ||
| 53 | 52 | ||
| 54 | 53 | ||
| @@ -59,8 +58,8 @@ MYLIBS= -ldl -lreadline | |||
| 59 | 58 | ||
| 60 | 59 | ||
| 61 | CC= gcc | 60 | CC= gcc |
| 62 | CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors | 61 | CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors -fno-stack-protector -fno-common |
| 63 | AR= ar rcu | 62 | AR= ar rc |
| 64 | RANLIB= ranlib | 63 | RANLIB= ranlib |
| 65 | RM= rm -f | 64 | RM= rm -f |
| 66 | 65 | ||
