Build and runtime fixes for Visual Studio 2015 #3448
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
This attempts to improve the build and runtime situation when using Visual Studio 2015, by:
Adding specializations for
std::hash
forhb_bytes_t
andstruct hb_serialize_context_t::object_t
, so that the build will not fail due to a C2338 error (The C++ Standard doesn't provide a hash for this type
) on Visual Studio 2015. This will replace (and revert) commit 52c536b.Fix meson test failure on MSVC #3379, where the templatized implementation of
struct main_font_text_t
confuses the template typetext_options_t
with the actualtext_options_t
, where we inherit from the actualtext_options_t
withshape_text_options_t
.Things now build properly with Visual Studio 2015 and tests now pass, with the full list of options that we can pass into
hb-shape.exe
.With blessings, thank you!