diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2025-04-04 16:29:05 -0300 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2025-04-04 17:18:14 -0300 |
commit | 751f7af706f77ca5f66a803f1a934417a3ca58f7 (patch) | |
tree | eac0ab9e3edc7b5e29d3eb694dee02cf10f62de0 | |
parent | editors/emacs: Add pkg-message to SUB_FILES (diff) |
editors/emacs: Disable NATIVECOMP by default for nox flavor
Emacs now includes a feature called native compilation, which compiles
elisp function definitions into native machine code. Unlike
byte-compiled code, natively-compiled elisp runs directly on the CPU,
providing a speedup of 2.5 to 5 times, depending on the workload. [0]
Native compilation requires GCC. Since this is a large dependency,
disable NATIVECOMP by default for the nox flavor, which is often used
for minimal installations.
[0] https://www.gnu.org/software/emacs/manual/html_node/elisp/Native-Compilation.html
Requested by: manu
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | editors/emacs/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile index c6a773f1beeb..6035b4531a28 100644 --- a/editors/emacs/Makefile +++ b/editors/emacs/Makefile @@ -107,8 +107,11 @@ OPTIONS_DEFINE= ACL DBUS GNUTLS GSETTINGS HARFBUZZ LCMS2 M17N \ XFT XIM XML XWIDGETS OPTIONS_DEFAULT= ACL CAIRO DBUS GIF GNUTLS GSETTINGS GTK3 \ HARFBUZZ JPEG KQUEUE LCMS2 MAILUTILS MODULES \ - NATIVECOMP OSS PNG SCROLLBARS SOURCES SQLITE3 \ - SVG THREADS TIFF TREESITTER WEBP XIM XML XPM + OSS PNG SCROLLBARS SOURCES SQLITE3 SVG THREADS \ + TIFF TREESITTER WEBP XIM XML XPM +.if ${FLAVOR:U} != nox +OPTIONS_DEFAULT+= NATIVECOMP +.endif OPTIONS_GROUP= GRAPHICS OPTIONS_GROUP_GRAPHICS= CAIRO GIF JPEG MAGICK PNG SVG TIFF WEBP XPM OPTIONS_RADIO= FILENOTIFY SOUND X11TOOLKIT |