Skip to content

Commit

Permalink
Force entire fst library when linking binaries
Browse files Browse the repository at this point in the history
As fst-types.cc has been split off, and only declares static registry
objects, these never made it into the binaries, so that the readers for
the FST types were unavailable.
  • Loading branch information
kkm committed May 30, 2018
1 parent 478e02a commit a754372
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/openfst.props
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<!-- Since 1.6.6, static FST registration was moved to its own file fst-types.cc.
Need to include all objects into the build, otherwise the static registration
will be unavailable. -->
<AdditionalOptions>/WHOLEARCHIVE:libfst %(AdditionalOptions)</AdditionalOptions>
</Link>
<Link Condition=" '$(Configuration)' == 'Release' ">
<EnableCOMDATFolding>true</EnableCOMDATFolding>
Expand Down

0 comments on commit a754372

Please sign in to comment.