From 6c10972dcafa5af5bae3fc93c19cbe582fbc623a Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 15 Aug 2018 09:45:47 +0200 Subject: [PATCH 1/2] Optimizing for size This saves around 300 KiB w/o boost. Signed-off-by: Sven Strickroth --- Notepad2e.vcxproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Notepad2e.vcxproj b/Notepad2e.vcxproj index e62bfdf6f..24a5b929e 100644 --- a/Notepad2e.vcxproj +++ b/Notepad2e.vcxproj @@ -96,7 +96,8 @@ - MaxSpeed + MinSpace + Size NDEBUG;%(PreprocessorDefinitions) true true From 8a40f49657d2ef2c1a7f4b1d260acd0454ed4fa1 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 15 Aug 2018 09:52:09 +0200 Subject: [PATCH 2/2] Use MultiThreadedDLL as RuntimeLibrary (/MD instead of /MT) This saves another 200 KiB, however, this now requires the MSVC++ to be present. Notepad2 was also linked against this runtime library (requires the old MSVCP60.DLL). Signed-off-by: Sven Strickroth --- Notepad2e.vcxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Notepad2e.vcxproj b/Notepad2e.vcxproj index 24a5b929e..07e625c3b 100644 --- a/Notepad2e.vcxproj +++ b/Notepad2e.vcxproj @@ -86,7 +86,7 @@ Disabled _DEBUG;%(PreprocessorDefinitions) EnableFastChecks - MultiThreadedDebug + MultiThreadedDebugDLL EditAndContinue true @@ -101,7 +101,7 @@ NDEBUG;%(PreprocessorDefinitions) true true - MultiThreaded + MultiThreadedDLL true true true