From 9a400bd33f0cb4f322de4208bb7159673a399521 Mon Sep 17 00:00:00 2001 From: Mitchell Foral Date: Thu, 1 Dec 2022 17:27:09 +1100 Subject: Change release compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang. Change code in Editor.cxx to avoid a warning that occurs with gcc -O3. --- win32/makefile | 2 +- win32/scintilla.mak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/makefile b/win32/makefile index e0f363653..c1829a45e 100644 --- a/win32/makefile +++ b/win32/makefile @@ -57,7 +57,7 @@ DEFINES += -DNO_CXX11_REGEX endif DEFINES += -D$(if $(DEBUG),DEBUG,NDEBUG) -BASE_FLAGS += $(if $(DEBUG),-g,-Os) +BASE_FLAGS += $(if $(DEBUG),-g,-O3) ifndef DEBUG STRIPFLAG=$(STRIPOPTION) diff --git a/win32/scintilla.mak b/win32/scintilla.mak index 62b90385e..f4eb67dcc 100644 --- a/win32/scintilla.mak +++ b/win32/scintilla.mak @@ -38,7 +38,7 @@ SUBSYSTEM=-SUBSYSTEM:WINDOWS,10.00 CRTFLAGS=-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_SCL_SECURE_NO_WARNINGS=1 $(ADD_DEFINE) CXXFLAGS=-Zi -TP -MP -W4 -EHsc -std:c++17 $(CRTFLAGS) CXXDEBUG=-Od -MTd -DDEBUG -CXXNDEBUG=-O1 -MT -DNDEBUG -GL +CXXNDEBUG=-O2 -MT -DNDEBUG -GL NAME=-Fo LDFLAGS=-OPT:REF -LTCG -IGNORE:4197 -DEBUG $(SUBSYSTEM) $(CETCOMPAT) LDDEBUG= -- cgit v1.2.3