git: 751f7af706f7 - main - editors/emacs: Disable NATIVECOMP by default for nox flavor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Apr 2025 20:21:20 UTC
The branch main has been updated by jrm: URL: https://cgit.FreeBSD.org/ports/commit/?id=751f7af706f77ca5f66a803f1a934417a3ca58f7 commit 751f7af706f77ca5f66a803f1a934417a3ca58f7 Author: Joseph Mingrone <jrm@FreeBSD.org> AuthorDate: 2025-04-04 19:29:05 +0000 Commit: Joseph Mingrone <jrm@FreeBSD.org> CommitDate: 2025-04-04 20:18:14 +0000 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 --- editors/emacs/Makefile | 7 +++++-- 1 file 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