safer build options
This commit is contained in:
parent
0e698e5281
commit
539e579a3a
10
Makefile
10
Makefile
@ -25,20 +25,22 @@ EXPORT_STRING = \
|
|||||||
|
|
||||||
# warning and error flags
|
# warning and error flags
|
||||||
CLANG_WARN_FLAGS = \
|
CLANG_WARN_FLAGS = \
|
||||||
-flto \
|
|
||||||
-fno-exceptions \
|
-fno-exceptions \
|
||||||
-Wl,--lto-O3 \
|
-Wall \
|
||||||
-Wall -Wextra \
|
-Wextra \
|
||||||
-Wno-ignored-qualifiers \
|
-Wno-ignored-qualifiers \
|
||||||
-Wundef \
|
-Wundef \
|
||||||
-Werror=return-type \
|
-Werror=return-type \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
|
|
||||||
# -Wconversion
|
# -Wconversion
|
||||||
|
# -flto \
|
||||||
|
# -Wl,--lto-O3 \
|
||||||
|
|
||||||
CLANG_OTHER_FLAGS = \
|
CLANG_OTHER_FLAGS = \
|
||||||
-DVCDWASM \
|
-DVCDWASM \
|
||||||
|
|
||||||
CLANG_O_FLAG = '-Oz'
|
CLANG_O_FLAG = '-Os'
|
||||||
|
|
||||||
ifdef NOOPT
|
ifdef NOOPT
|
||||||
CLANG_O_FLAG = ' '
|
CLANG_O_FLAG = ' '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user