Add FMA to windows builds.

This commit is contained in:
Alexander David Frick 2021-12-13 10:42:08 -06:00 committed by GitHub
parent bf5681fe94
commit 6671efd3b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,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", "-ffp-contract=fast", ]
cflags += [ "-mavx", "-Xclang", "-ffp-contract=fast", ]
}
if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") ==