Skip to content

Commit

Permalink
Include folly fabric headers in source files (#33188)
Browse files Browse the repository at this point in the history
Summary:
See the main spec preserve_paths, they are all also included as source_files. Without this, the folly fabric header files won't be available for other pods.

## Changelog

[iOS] [Fixed] - Include folly fabric headers in source files

Pull Request resolved: #33188

Test Plan:
Include react-native-safe-area-context 4.0.1 with new architecture active. It will result in a xcode build error:

<img width="466" alt="Screenshot 2022-02-26 at 19 33 35" src="https://user-images.githubusercontent.com/996231/155855017-8ea5f473-42a0-4e56-8108-472e6224ae7e.png">

Reviewed By: cortinico

Differential Revision: D34518841

Pulled By: motiz88

fbshipit-source-id: 1053fe204331a314427c793f28b2458e7b78e6c5
  • Loading branch information
danilobuerger authored and Andrei Shikov committed Mar 16, 2022
1 parent 63e4bd6 commit 4b370ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion third-party-podspecs/RCT-Folly.podspec
Expand Up @@ -91,7 +91,11 @@ Pod::Spec.new do |spec|
'folly/concurrency/CacheLocality.cpp',
'folly/detail/Futex.cpp',
'folly/synchronization/ParkingLot.cpp',
'folly/portability/Malloc.cpp'
'folly/portability/Malloc.cpp',
'folly/concurrency/CacheLocality.h',
'folly/synchronization/ParkingLot.h',
'folly/synchronization/SanitizeThread.h',
'folly/system/ThreadId.h'

fabric.preserve_paths = 'folly/concurrency/CacheLocality.h',
'folly/synchronization/ParkingLot.h',
Expand Down

0 comments on commit 4b370ce

Please sign in to comment.