From 2f632e1238532ed25542fbff649486ce4aa37585 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 9 Sep 2024 18:03:07 +0200 Subject: [PATCH] disable unused Scintilla features at build time should slightly reduce binary size --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8ad8288..b7a5636 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,9 @@ fi # to SciTECO and Scintilla. # We cannot pass CXXFLAGS directly to Scintilla since # we modify it during library checking. -SCINTILLA_CXXFLAGS="$CXXFLAGS" +# Additionally, we can disable unused Scintilla features. +# See https://scintilla.org/ScintillaDoc.html#BuildingScintilla +SCINTILLA_CXXFLAGS="$CXXFLAGS -DNO_CXX11_REGEX -DSCI_DISABLE_PROVISIONAL" AC_SUBST(SCINTILLA_CXXFLAGS) # Automake build flag substitutions.