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 44b08ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ OUTPUT = stocksim-msvc.exe
endif
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 -Oy- -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 44b08ab

Please sign in to comment.