mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Update sw.cpp
This commit is contained in:
parent
d358270dd4
commit
4a5760dd42
11
sw.cpp
11
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;
|
||||
|
Loading…
Reference in New Issue
Block a user