aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2021-12-21 19:34:40 +0100
committerpennae <github@quasiparticle.net>2022-03-03 17:47:49 +0100
commit2799fe4cdbe77e017544f2fe61ae9baef650dbe6 (patch)
tree21294b63e66563fd7e2cad66da3afb4865bdf625 /doc/manual
parent609779086301a600f4282a629d586bba6b6a485c (diff)
enable LTO in optimized builds
gives 2-5% performance improvement across a board of tests. LTO is broken when using clang; some libs link fine while others crash the linker with a segfault in the llvm linker plugin. 🙁
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/src/release-notes/rl-next.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/manual/src/release-notes/rl-next.md b/doc/manual/src/release-notes/rl-next.md
index 7dd8387d8..d81e54e49 100644
--- a/doc/manual/src/release-notes/rl-next.md
+++ b/doc/manual/src/release-notes/rl-next.md
@@ -26,3 +26,6 @@
* Templates can now define a `welcomeText` attribute, which is printed out by
`nix flake {init,new} --template <template>`.
+
+* Nix can now be built with LTO by passing `--enable-lto` to `configure`.
+ LTO is currently only supported when building with GCC.