From 4a5760dd425220869d2de3889ab82176d6df08aa Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Mon, 15 Nov 2021 00:22:02 +0300 Subject: [PATCH] Update sw.cpp --- sw.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sw.cpp b/sw.cpp index cade135d..a7884ffa 100644 --- a/sw.cpp +++ b/sw.cpp @@ -65,9 +65,16 @@ void build(Solution &s) { libtesseract += "__SSE4_1__"_def; libtesseract.CompileOptions.push_back("-arch:AVX2"); + } - libtesseract -= - "src/arch/dotproductfma.cpp"; + libtesseract -= "src/arch/dotproductfma.cpp"; + + if (libtesseract.getBuildSettings().TargetOS.Type != OSType::Windows) + { + libtesseract["src/arch/dotproductavx.cpp"].args.push_back("-mavx"); + libtesseract["src/arch/dotproductsse.cpp"].args.push_back("-msse4.1"); + libtesseract["src/arch/intsimdmatrixsse.cpp"].args.push_back("-msse4.1"); + libtesseract["src/arch/intsimdmatrixavx2.cpp"].args.push_back("-mavx2"); } libtesseract.Public += "HAVE_CONFIG_H"_d;