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

Making JSI_EXPORT macro definition conditional #22561

Closed
wants to merge 1 commit into from

Conversation

mganandraj
Copy link
Contributor

This change enables defining the macro at a more global and central location. And thereby allowing us to building this file using MSVC.

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@pull-bot
Copy link

pull-bot commented Dec 7, 2018

Warnings
⚠️

📋 Test Plan - This PR appears to be missing a Test Plan.

⚠️

📋 Changelog - This PR appears to be missing Changelog.

Generated by 🚫 dangerJS

@elicwhite
Copy link
Member

Can you add some more context to your summary for how this will be used? In some ways you are asking for this to become part of our public API so that other projects can define it differently. It would be good to know the use cases for that in a bit more detail.

@acoates-ms
Copy link
Contributor

This isn't changing it to be a public API. Its already marked as JSI_EXPORT. This change just makes the code not override an existing definition for JSI_EXPORT, say if you wanted to #define it to be __dllexport so that you can build this file using MSVC.

@mganandraj
Copy link
Contributor Author

Yep. Andrew has perfectly explained the motivation behind the change. Essentially we want the macro to be redefinable.

@RSNara
Copy link
Contributor

RSNara commented Dec 13, 2018

cc @mhorowitz. Can you review this change?

Copy link
Contributor

@RSNara RSNara left a comment

Choose a reason for hiding this comment

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

Just talked with @mhorowitz and he verified that this change is fine. @mganandraj, can you sign the CLA so that I can land this internally?

@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 Dec 15, 2018
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

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

@react-native-bot
Copy link
Collaborator

Anandraj Govindan merged commit 1d0404c into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Dec 27, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 27, 2018
KusStar pushed a commit to KusStar/react-native that referenced this pull request Oct 28, 2020
Summary:
This change enables defining the macro at a more global and central location. And thereby allowing us to building this file using MSVC.
Pull Request resolved: facebook#22561

Reviewed By: fkgozali

Differential Revision: D13529762

Pulled By: RSNara

fbshipit-source-id: c78abb26f47aba25d50305c5bc0b23b6568f1243
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants