Repository navigation
Commit a56d406
committed
Disable folly coroutines for library pods in install_modules_dependencies
Libraries that set their own folly compiler flags (e.g. -DFOLLY_NO_CONFIG without
-DFOLLY_CFG_NO_COROUTINES=1) enable folly coroutines under C++20. Since #58711,
RCTTurboModule.h transitively includes folly/dynamic.h, so these libraries fail to
build with 'folly/coro/Coroutine.h' file not found, because ReactNativeDependencies
does not ship the folly/coro headers.
Always append -DFOLLY_CFG_NO_COROUTINES=1 to the compiler flags set by
install_modules_dependencies.1 parent 44ffdba commit a56d406
2 files changed
Lines changed: 6 additions & 2 deletions
File tree
- packages/react-native/scripts/cocoapods
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
0 commit comments