diff options
author | Lin Jian <me@linj.tech> | 2022-06-08 02:41:06 +0800 |
---|---|---|
committer | Lin Jian <me@linj.tech> | 2022-08-18 20:38:37 +0800 |
commit | 51bd7cf0d05f996c74b8fabebc755a2fe253b50e (patch) | |
tree | b18599676b503e8af96a97297642aa0b4f3d376d /nixos | |
parent | 3524da2f0ab911c9c65ac6fb34e87b9698a4e5fb (diff) |
emacs: enable native-comp
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/from_md/release-notes/rl-2211.section.xml | 28 | ||||
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2211.section.md | 4 |
2 files changed, 32 insertions, 0 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml index 2e3dfea8cb6ed..ce161fca5b406 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml @@ -72,6 +72,34 @@ </listitem> <listitem> <para> + <literal>emacs</literal> enables native compilation which + means: + </para> + <itemizedlist spacing="compact"> + <listitem> + <para> + emacs packages from nixpkgs, builtin or not, will do + native compilation ahead of time so you can enjoy the + benefit of native compilation without compiling them on + you machine; + </para> + </listitem> + <listitem> + <para> + emacs packages from somewhere else, e.g. + <literal>package-install</literal>, will do asynchronously + deferred native compilation. If you do not want this, + maybe to avoid CPU consumption for compilation, you can + use + <literal>(setq native-comp-deferred-compilation nil)</literal> + to disable it while still enjoy the benefit of native + compilation for packages from nixpkgs. + </para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para> <literal>nixos-generate-config</literal> now generates configurations that can be built in pure mode. This is achieved by setting the new diff --git a/nixos/doc/manual/release-notes/rl-2211.section.md b/nixos/doc/manual/release-notes/rl-2211.section.md index 6bc7d1917cae8..eea3eef264066 100644 --- a/nixos/doc/manual/release-notes/rl-2211.section.md +++ b/nixos/doc/manual/release-notes/rl-2211.section.md @@ -35,6 +35,10 @@ In addition to numerous new and upgraded packages, this release has the followin for a transition period so that in time the ecosystem can switch without breaking compatibility with any supported NixOS release. +- `emacs` enables native compilation which means: + - emacs packages from nixpkgs, builtin or not, will do native compilation ahead of time so you can enjoy the benefit of native compilation without compiling them on you machine; + - emacs packages from somewhere else, e.g. `package-install`, will do asynchronously deferred native compilation. If you do not want this, maybe to avoid CPU consumption for compilation, you can use `(setq native-comp-deferred-compilation nil)` to disable it while still enjoy the benefit of native compilation for packages from nixpkgs. + - `nixos-generate-config` now generates configurations that can be built in pure mode. This is achieved by setting the new `nixpkgs.hostPlatform` option. |