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

Update InspectorFlags to use NDEBUG flag #46282

Closed
wants to merge 1 commit into from

Conversation

huntie
Copy link
Member

@huntie huntie commented Aug 30, 2024

Summary:
We intended to enable Fusebox on main since #45469 — this worked when building under Buck, however was not working for builds under Xcode/Android Studio. This is because the HERMES_ENABLE_DEBUGGER preprocessor flag is not equivalently defined in these build configurations.

This diff genericises these checks to !defined(NDEBUG) (i.e. any debug build), meaning we are correctly able to evaluate the ReactNativeFeatureFlags::fuseboxEnabledDebug() setting.

Changelog: [Internal]

NOTE: NDEBUG should be the as-generic-as-possible choice to select a debug build in both OSS and fbsource. Having HERMES_ENABLE_DEBUGGER set remains significant (AFAIK) within the Hermes codebase (there are no other references in jsinspector-modern). Evaluation of whether the lack of this flag works in OSS continues in T200241280.

Reviewed By: hoxyq

Differential Revision: D61966685

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Aug 30, 2024
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: facebook#46282

We intended to enable Fusebox on `main` since facebook#45469 — this worked when building under Buck, however was not working for builds under Xcode/Android Studio. This is because the `HERMES_ENABLE_DEBUGGER` preprocessor flag is not equivalently defined in these build configurations.

This diff genericises these checks to `!defined(NDEBUG)` (i.e. *any debug build*), meaning we are correctly able to evaluate the `ReactNativeFeatureFlags::fuseboxEnabledDebug()` setting.

Changelog: [Internal]

NOTE: `NDEBUG` should be the as-generic-as-possible choice to select a debug build in both OSS and fbsource. Having `HERMES_ENABLE_DEBUGGER` set remains significant (AFAIK) **within the Hermes codebase** (there are no other references in `jsinspector-modern`). Evaluation of whether the lack of this flag works in OSS continues in T200241280.

Reviewed By: hoxyq

Differential Revision: D61966685
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 30, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f00e8ba.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @huntie in f00e8ba

When will my fix make it into a release? | How to file a pick request?

@facebook-github-bot
Copy link
Contributor

This pull request has been reverted by 305b435.

huntie added a commit to huntie/react-native that referenced this pull request Sep 9, 2024
Summary:
> [!Note]
> Replaces facebook#46282.

We intended to enable Fusebox on `main` since facebook#45469 — this worked when building under Buck, however was not working for builds under Xcode. This is because the `HERMES_ENABLE_DEBUGGER` preprocessor flag was missing for the `React-jsinspector` Podspec.

Differential Revision: D62375148
facebook-github-bot pushed a commit that referenced this pull request Sep 9, 2024
…ods (#46393)

Summary:
Pull Request resolved: #46393

> [!Note]
> Replaces #46282.

We intended to enable Fusebox on `main` since #45469 — this worked when building under Buck, however was not working for builds under Xcode. This is because the `HERMES_ENABLE_DEBUGGER` preprocessor flag was missing for the `React-jsinspector` Podspec.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D62375148

fbshipit-source-id: 5d4d243d0a2cb7796fdf59d57086a0cb966639c7
@huntie huntie deleted the export-D61966685 branch September 9, 2024 12:02
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Reverted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants