Skip to content

Commit 332a1a9

Browse files
committed
Pass ssse/avx flags to all files to pacify VS ide.
1 parent 3c734e2 commit 332a1a9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sw.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ void build(Solution &s)
6262
if (s.Settings.Native.CompilerType == CompilerType::MSVC ||
6363
s.Settings.Native.CompilerType == CompilerType::ClangCl)
6464
{
65-
libtesseract["src/arch/dotproductavx.cpp"].args.push_back("-arch:AVX");
66-
libtesseract["src/arch/dotproductsse.cpp"].args.push_back("-D__SSE4_1__");
67-
libtesseract["src/arch/intsimdmatrixavx2.cpp"].args.push_back("-arch:AVX2");
68-
libtesseract["src/arch/intsimdmatrixsse.cpp"].args.push_back("-D__SSE4_1__");
65+
libtesseract += "__SSE4_1__"_def;
66+
libtesseract.CompileOptions.push_back("-arch:AVX2");
6967
}
7068

7169
libtesseract.Public += "HAVE_CONFIG_H"_d;

0 commit comments

Comments
 (0)