Skip to content

Use GCC_PREPROCESSOR_DEFINITIONS to set FB_SONARKIT_ENABLED - #33972

Closed
janicduplessis wants to merge 2 commits into
react:mainfrom
janicduplessis:patch-15
Closed

Use GCC_PREPROCESSOR_DEFINITIONS to set FB_SONARKIT_ENABLED#33972
janicduplessis wants to merge 2 commits into
react:mainfrom
janicduplessis:patch-15

Conversation

@janicduplessis

@janicduplessisjanicduplessis commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

Summary

OTHER_CFLAGS doesn't seem to work when the file is imported from Objc++. This causes flipper to not be included.

Changelog

[iOS] [Fixed] - Use GCC_PREPROCESSOR_DEFINITIONS to set FB_SONARKIT_ENABLED

Test Plan

Tested the change in an app. Used a breakpoint to see that flipper code is not executed before this change, and is after. Also made sure other GCC_PREPROCESSOR_DEFINITIONS set by cocoapods are still properly inherited.

@facebook-github-botfacebook-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. Contributor A React Native contributor. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jun 7, 2022
@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a7,782,262+0
androidhermesarmeabi-v7a7,172,079+0
androidhermesx868,092,955+0
androidhermesx86_648,068,944+0
androidjscarm64-v8a9,649,085+0
androidjscarmeabi-v7a8,407,885+0
androidjscx869,600,644+0
androidjscx86_6410,193,678+0

Base commit: 43f831b
Branch: main

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 43f831b
Branch: main

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @janicduplessis in 77e6bff.

When will my fix make it into a release? | Upcoming Releases

@react-native-botreact-native-bot added the Merged This PR has been merged. label Jun 8, 2022
@janicduplessis
janicduplessis deleted the patch-15 branch June 8, 2022 15:22
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.ContributorA React Native contributor.MergedThis PR has been merged.Platform: iOSiOS applications.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@janicduplessis@analysis-bot@facebook-github-bot@react-native-bot