Skip to content

Commit

Permalink
Add compiler flags to reduce binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
0e4ef622 committed Oct 28, 2024
1 parent 323b654 commit 86fcbdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# optional flags that make the stripped binary smaller
EXTRAFLAGS = -D__USE_MINGW_ANSI_STDIO=0 -Wl,--disable-reloc-section -fno-asynchronous-unwind-tables -O2

winediscordipcbridge.exe: main.c
i686-w64-mingw32-gcc -masm=intel main.c -o winediscordipcbridge
i686-w64-mingw32-gcc $(EXTRAFLAGS) -masm=intel main.c -o winediscordipcbridge

0 comments on commit 86fcbdd

Please sign in to comment.