From 4cfc30dd1c7206ad4c19716091ba084ce16e2efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 21 Jun 2022 08:45:03 +0300 Subject: [PATCH] [fastbuild] use -fno-lto This is very cache-unfriendly, because quite a lot of work is done during the final linking stage. Let's see how this improves performance of fastbuild. --- toolchain/zig_toolchain.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/zig_toolchain.bzl b/toolchain/zig_toolchain.bzl index a33635c..a93bde5 100644 --- a/toolchain/zig_toolchain.bzl +++ b/toolchain/zig_toolchain.bzl @@ -75,7 +75,7 @@ def _compilation_mode_features(ctx): actions = actions, flag_groups = [ flag_group( - flags = ["-gmlt", "-Wl,-S"], + flags = ["-gmlt", "-fno-lto", "-Wl,-S"], ), ], ),