Skip to content

Commit

Permalink
Add FMA to windows builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 authored Dec 10, 2021
1 parent bd3da08 commit 190eb87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/config/win/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Copyright (c) 2021 The Chromium Authors and Alex313031. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand Down Expand Up @@ -110,7 +110,7 @@ config("compiler") {
# microarchitecture. MSVC only supports a subset of architectures, and the
# next step after SSE2 will be AVX.
if (current_cpu == "x86" || current_cpu == "x64") {
cflags += [ "-mavx" ]
cflags += [ "-mavx", "-ffp-contract=fast", ]
}

if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") ==
Expand Down

0 comments on commit 190eb87

Please sign in to comment.