Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.dll flavor broken #93

Merged
merged 2 commits into from
Sep 12, 2019
Merged

.dll flavor broken #93

merged 2 commits into from
Sep 12, 2019

Conversation

maxgolov
Copy link
Contributor

Recent changes made to ILogConfiguration and addition of IModule were breaking on Windows win32-dll flavor. Unfortunately we do not have a linking test on Windows - test runners are statically linked.

It would be ideal to add a test runner that simply verifies the ClientTelemetry.dll , not just the core statically linked .lib The issue wasn't impacting Office nor MIP, since both are statically linking our API.

The fix is to add the proper export. Note that we ignore the warning for STL runtime -- on std::map, std::string and std::shared_ptr ... And are not exporting all the required template class specializations for these STL classes. No ABI compat promises here (we never had that promise), and it would only work well with maching STL runtime that has a compatible / identical template class specialization.

… breaking on Windows win32-dll flavor. Unfortunately we do not have a linking test on Windows - test runners are statically linked. The issue wasn't impacting Office nor MIP, since both are statically linking our API. The fix is to add the proper export. Note that we ignore the warning for STL runtime, on std::map, std::string and std::shared_ptr, and are not exporting all the required template class specializations for these STL classes. No ABI compat promises here (we never had that promise) -- it all works only with maching STL runtime.
Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@maxgolov maxgolov merged commit df5ed8a into master Sep 12, 2019
@maxgolov maxgolov deleted the maxgolov/dll_export_fix branch September 12, 2019 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants