Skip to content

Commit 539e579

Browse files
committed
safer build options
1 parent 0e698e5 commit 539e579

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,22 @@ EXPORT_STRING = \
2525

2626
# warning and error flags
2727
CLANG_WARN_FLAGS = \
28-
-flto \
2928
-fno-exceptions \
30-
-Wl,--lto-O3 \
31-
-Wall -Wextra \
29+
-Wall \
30+
-Wextra \
3231
-Wno-ignored-qualifiers \
3332
-Wundef \
3433
-Werror=return-type \
3534
-Wshadow \
35+
3636
# -Wconversion
37+
# -flto \
38+
# -Wl,--lto-O3 \
3739
3840
CLANG_OTHER_FLAGS = \
3941
-DVCDWASM \
4042

41-
CLANG_O_FLAG = '-Oz'
43+
CLANG_O_FLAG = '-Os'
4244

4345
ifdef NOOPT
4446
CLANG_O_FLAG = ' '

0 commit comments

Comments
 (0)