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 {