Add FMA to windows builds.

This commit is contained in:
Alexander David Frick 2021-12-09 22:15:48 -06:00 committed by GitHub
parent bd3da080ca
commit 190eb87993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
@ -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") ==