Skip to content

Commit

Permalink
Optimize MSVC exe size
Browse files Browse the repository at this point in the history
  • Loading branch information
eric15342335 committed Jun 18, 2024
1 parent 97bb929 commit cb76e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ endif

# -GL can further reduce size, but more likely to flag as malicious
msvc: src/*.cpp include/*.h clean
cl -std:c++17 -EHsc -utf-8 -Iinclude -W1 -WX -O1 -guard:cf -MP \
src/*.cpp -Fe:$(OUTPUT)
cl -std:c++17 -utf-8 -Iinclude -W1 -WX -sdl -O1 -guard:cf -MP \
src/*.cpp -Fe:$(OUTPUT) -MD -GL -D_HAS_EXCEPTIONS=0 -GR-
rm *.obj || true

format-check:
Expand Down

0 comments on commit cb76e26

Please sign in to comment.