Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs: enable support for native-compilation. #36690

Merged
merged 1 commit into from
Apr 16, 2022

Conversation

leahneukirchen
Copy link
Member

@leahneukirchen leahneukirchen commented Apr 14, 2022

Closes #36543.
Closes #24240.

This enables native-compilation and provides precompiled elisp files
for emacs-x11 and emacs-gtk3. The plain console emacs stays without
support for native compilation to keep it lean, as native-compilation
pulls in libgccjit (27MB) and gcc (172MB + deps)
as well as emacs-common-eln (15MB).

On slow machines, native compilation can be disabled by setting
(setq comp-deferred-compilation nil)
in your .emacs.

Testing the changes

  • I tested the changes in this PR: briefly

@KSPAtlas

This comment was marked as off-topic.

This enables native-compilation and provides precompiled elisp files
for emacs-x11 and emacs-gtk3.  The plain console emacs stays without
support for native compilation to keep it lean, as native-compilation
pulls in libgccjit (27MB) and gcc (172MB + deps)
as well as emacs-common-eln (15MB).

On slow machines, native compilation can be disabled by setting
(setq comp-deferred-compilation nil)
in your .emacs.
@leahneukirchen leahneukirchen marked this pull request as ready for review April 16, 2022 12:07
@leahneukirchen leahneukirchen merged commit f646197 into void-linux:master Apr 16, 2022
@leahneukirchen leahneukirchen deleted the emacs-native-comp branch April 16, 2022 14:05
@soanvig
Copy link

soanvig commented Apr 17, 2022

How this works exactly? I've updated void, I have emacs-28.1 executable now, but running command emacs-lisp-native-compile-and-load (emacs command) produces result Emacs was not compiled with native compiler support --with-native-compilation

@leahneukirchen
Copy link
Member Author

As stated, only emacs-x11 and emacs-gtk3 have native compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request: Enable --with-native-compilation compilation flag in emacs [Package Request] GccEmacs
3 participants