diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-07-01 14:52:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-07-01 14:52:09 -0300 |
commit | 6a8400ba4f5bee9be5831e06d0686e2d617fbf27 (patch) | |
tree | 6ac344abd06c342e6338990efafad0b340572e16 /makefile | |
parent | 2de3361c6c795ec98274f4d8ea3e9d5280e06074 (diff) | |
download | lua-6a8400ba4f5bee9be5831e06d0686e2d617fbf27.tar.gz lua-6a8400ba4f5bee9be5831e06d0686e2d617fbf27.tar.bz2 lua-6a8400ba4f5bee9be5831e06d0686e2d617fbf27.zip |
using 'clang' by default + changes in warnings ('old-style-declaration'
removed because it is included in 'extra' + 'strict-aliasing' removed
because it is included in 'all' + 'aggregate-return' removed because
no one would do it by mistake)
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -8,15 +8,14 @@ | |||
8 | CWARNSCPP= \ | 8 | CWARNSCPP= \ |
9 | -pedantic \ | 9 | -pedantic \ |
10 | -Wextra \ | 10 | -Wextra \ |
11 | -Waggregate-return \ | ||
12 | -Wshadow \ | 11 | -Wshadow \ |
13 | -Wsign-compare \ | 12 | -Wsign-compare \ |
14 | -Wundef \ | 13 | -Wundef \ |
15 | -Wwrite-strings \ | 14 | -Wwrite-strings \ |
16 | -Wredundant-decls \ | 15 | -Wredundant-decls \ |
17 | -Wdisabled-optimization \ | 16 | -Wdisabled-optimization \ |
18 | -Wstrict-aliasing \ | ||
19 | # the next warnings generate to much noise, so they are disabled | 17 | # the next warnings generate to much noise, so they are disabled |
18 | # -Wdouble-promotion \ | ||
20 | # -Wconversion -Wno-sign-conversion \ | 19 | # -Wconversion -Wno-sign-conversion \ |
21 | # -Wsign-conversion \ | 20 | # -Wsign-conversion \ |
22 | # -Wconversion \ | 21 | # -Wconversion \ |
@@ -32,7 +31,7 @@ CWARNSC= -Wdeclaration-after-statement \ | |||
32 | -Wstrict-prototypes \ | 31 | -Wstrict-prototypes \ |
33 | -Wc++-compat \ | 32 | -Wc++-compat \ |
34 | -Wold-style-definition \ | 33 | -Wold-style-definition \ |
35 | -Wold-style-declaration \ | 34 | |
36 | 35 | ||
37 | CWARNS= $(CWARNSCPP) $(CWARNSC) | 36 | CWARNS= $(CWARNSCPP) $(CWARNSC) |
38 | 37 | ||
@@ -54,7 +53,7 @@ MYLDFLAGS= $(LOCAL) -Wl,-E | |||
54 | MYLIBS= -ldl -lreadline -lhistory -lncurses | 53 | MYLIBS= -ldl -lreadline -lhistory -lncurses |
55 | 54 | ||
56 | 55 | ||
57 | CC= gcc | 56 | CC= clang |
58 | CFLAGS= -Wall -O2 $(MYCFLAGS) | 57 | CFLAGS= -Wall -O2 $(MYCFLAGS) |
59 | # CC= ~lhf/sunstudio12/bin/cc | 58 | # CC= ~lhf/sunstudio12/bin/cc |
60 | # CFLAGS= -xO5 -v -Xc -native -xstrconst | 59 | # CFLAGS= -xO5 -v -Xc -native -xstrconst |