Skip to content

Commit 9f17ed9

Browse files
committed
feat: Add some flags in Makefile to reduce bin size
1 parent be733b6 commit 9f17ed9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,17 @@ CCFLAGS += \
211211
-g \
212212
-Wpointer-arith \
213213
-Wundef \
214-
-Werror \
215214
-Wl,-EL \
216215
-fno-inline-functions \
217216
-nostdlib \
218217
-mlongcalls \
219218
-mtext-section-literals \
220219
-ffunction-sections \
221220
-fdata-sections \
222-
-fno-builtin-printf
221+
-fno-builtin-printf \
222+
-fno-guess-branch-probability \
223+
-freorder-blocks-and-partition \
224+
-fno-cse-follow-jumps
223225
# -Wall
224226

225227
CFLAGS = $(CCFLAGS) $(DEFINES) $(EXTRA_CCFLAGS) $(INCLUDES)

0 commit comments

Comments
 (0)