From 6671efd3b2d4d5b51657e0a5717493e9c749c84b Mon Sep 17 00:00:00 2001 From: Alexander David Frick Date: Mon, 13 Dec 2021 10:42:08 -0600 Subject: [PATCH] Add FMA to windows builds. --- build/config/win/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn index dedef589..41aceb64 100644 --- a/build/config/win/BUILD.gn +++ b/build/config/win/BUILD.gn @@ -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") ==