From 93d1ef18e6ca30b56003ad5ee8a2521038ac8c7c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 19 Jun 2020 20:45:18 -0700 Subject: [PATCH] Add section for --disable-lto --- BUILD.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BUILD.md b/BUILD.md index 704c894..49bc096 100644 --- a/BUILD.md +++ b/BUILD.md @@ -119,6 +119,12 @@ developers to explore an unterminated program. This manually applies full release-mode optimizations even when using `--enable-debug`. Implied when not in debug mode. +#### Disable link-time optimization (LTO) + +``` +--disable-lto +``` +LTO is enabled when optimization is enabled (and when the toolchain supports it). When developing in optimized mode, disabling LTO is strongly advised to reduce excessive link times. #### Disable third-party dynamic allocator libraries