Skip to content

Commit b9b74a6

Browse files
committed
Update sw build.
1 parent 746674f commit b9b74a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sw.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ void build(Solution &s)
5959
"src/classify"_id,
6060
"src/arch"_id;
6161

62-
if (s.Settings.Native.CompilerType == CompilerType::MSVC ||
63-
s.Settings.Native.CompilerType == CompilerType::ClangCl)
62+
if (libtesseract.getCompilerType() == CompilerType::MSVC ||
63+
libtesseract.getCompilerType() == CompilerType::ClangCl)
6464
{
6565
libtesseract += "__SSE4_1__"_def;
6666
libtesseract.CompileOptions.push_back("-arch:AVX2");
@@ -75,7 +75,7 @@ void build(Solution &s)
7575
libtesseract.Public += "org.sw.demo.danbloomberg.leptonica-master"_dep;
7676
libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep;
7777

78-
if (s.Settings.TargetOS.Type == OSType::Windows)
78+
if (libtesseract.getSettings().TargetOS.Type == OSType::Windows)
7979
{
8080
libtesseract.Public += "ws2_32.lib"_l;
8181
libtesseract.Protected += "NOMINMAX"_def;

0 commit comments

Comments
 (0)