From ea4bac03401e6e65dafda35589c220e1d50037fe Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Wed, 18 Sep 2024 13:54:34 +0000 Subject: [PATCH] v.builder: enable LTO for clang on OpenBSD (#22247) --- 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 b252fc7bc0ee55..7100ed7e763238 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -232,7 +232,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) { } optimization_options = ['-O3'] mut have_flto := true - $if openbsd || windows { + $if windows { have_flto = false } if have_flto {