From cb76e268108de1119ee1f7de59fc01a90ad3508c Mon Sep 17 00:00:00 2001 From: "Cheng Ho Ming, Eric" Date: Tue, 18 Jun 2024 23:06:40 +0800 Subject: [PATCH] Optimize MSVC exe size --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 928a4c4..2cc3be2 100644 --- a/Makefile +++ b/Makefile @@ -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: