safer build options

This commit is contained in:
Aliaksei Chapyzhenka 2022-05-25 22:10:18 -07:00
parent 0e698e5281
commit 539e579a3a

View File

@ -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 = ' '