Skip to content

Conversation

@jacobkahn
Copy link
Member

Summary

See title. Fixed by adding -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON to the Windows build which actually exported everything without having to change the source, hooray

Enables building Flashlight Text wheels on Windows

Test plan: CI

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 23, 2022
@facebook-github-bot
Copy link

@jacobkahn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
See title. Fixed by adding `-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON` to the Windows build which actually exported everything without having to change the source, hooray

Enables building Flashlight Text wheels on Windows

Pull Request resolved: #16

Test Plan: CI

Differential Revision: D39760655

Pulled By: jacobkahn

fbshipit-source-id: 8a1fab0c0e50f7c4717c3d10308af6171103e27d
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D39760655

@Nayef211
Copy link

Just wanted to point you to this PR from @mthrok pytorch/text#1806 which only exports relevant symbols on Windows platform. The reasoning being

There is an upper limit of visible symbols one library fine can contain, and this can be problematic in the future.

This may not be relevant here as it's unlikely you'd be hitting the upper bound in your library, but thought it might be worth calling out.

@jacobkahn
Copy link
Member Author

@Nayef211 thanks for that callout -- __declspec makes me sad/I'll avoid it for as long as I can 😄

@jacobkahn jacobkahn deleted the windows_ci branch September 26, 2022 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants