diff options
author | Mitchell Foral <unknown> | 2022-12-01 17:27:09 +1100 |
---|---|---|
committer | Mitchell Foral <unknown> | 2022-12-01 17:27:09 +1100 |
commit | 9a400bd33f0cb4f322de4208bb7159673a399521 (patch) | |
tree | 907794431dd3dc69f6eafc3da05eb0f60ccc5096 /gtk/makefile | |
parent | b80ca55f14fc7e0aa582a1b0b2117faf23ec29be (diff) | |
download | scintilla-mirror-9a400bd33f0cb4f322de4208bb7159673a399521.tar.gz |
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.
Diffstat (limited to 'gtk/makefile')
-rw-r--r-- | gtk/makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/makefile b/gtk/makefile index a641f18e4..8643ae317 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -84,7 +84,7 @@ DEFINES += -DNO_CXX11_REGEX endif DEFINES += -D$(if $(DEBUG),DEBUG,NDEBUG) -BASE_FLAGS += $(if $(DEBUG),-g,-Os) +BASE_FLAGS += $(if $(DEBUG),-g,-O3) CXX_BASE_FLAGS =--std=c++17 $(BASE_FLAGS) CXX_ALL_FLAGS =$(DEFINES) $(INCLUDES) $(CXX_BASE_FLAGS) $(CONFIG_FLAGS) |