From d4fc8601e005e05f20775fca6db6fc54f97de977 Mon Sep 17 00:00:00 2001 From: vyrus001 Date: Tue, 15 Feb 2022 23:13:26 -0800 Subject: [PATCH] builder: fix clang failing to link on windows due to an -ftlo error (#13470) --- vlib/v/builder/cc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 6910fce2c0..6741a262d8 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -234,7 +234,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) { } optimization_options = ['-O3'] mut have_flto := true - $if openbsd { + $if openbsd || windows { have_flto = false } if have_flto {