Skip to content

Commit

Permalink
Pass ssse/avx flags to all files to pacify VS ide.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Apr 7, 2019
1 parent 3c734e2 commit 332a1a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ void build(Solution &s)
if (s.Settings.Native.CompilerType == CompilerType::MSVC ||
s.Settings.Native.CompilerType == CompilerType::ClangCl)
{
libtesseract["src/arch/dotproductavx.cpp"].args.push_back("-arch:AVX");
libtesseract["src/arch/dotproductsse.cpp"].args.push_back("-D__SSE4_1__");
libtesseract["src/arch/intsimdmatrixavx2.cpp"].args.push_back("-arch:AVX2");
libtesseract["src/arch/intsimdmatrixsse.cpp"].args.push_back("-D__SSE4_1__");
libtesseract += "__SSE4_1__"_def;
libtesseract.CompileOptions.push_back("-arch:AVX2");
}

libtesseract.Public += "HAVE_CONFIG_H"_d;
Expand Down

0 comments on commit 332a1a9

Please sign in to comment.