-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Header namespace and transitive HeaderMap
This patch implements transitive headermaps. By using 2 headermaps the headersearchs are most efficient: a headermap for the current target, and a header map with namespaced includes. At the ObjC level, headermaps are created with a namespace of the given target. In `objc_library` it is possible for the user to override the value of the namespace via the new attribute, `header_namespace`. This allows users to include headers from ObjC targets in the convention of <Namespace/Header.h> Which is idiomatic for headers inclusions in ObjC development and CocoaPods. Performance data: Build time before HeaderMap: Target //Pinterest/iOS/App:PinterestDevelopment up-to-date: bazel-bin/Pinterest/iOS/App/PinterestDevelopment.ipa ____Elapsed time: 373.588s, Critical Path: 18.86s Build time after header maps on the entire project: Target //Pinterest/iOS/App:PinterestDevelopment up-to-date: bazel-bin/Pinterest/iOS/App/PinterestDevelopment.ipa ____Elapsed time: 188.971s, Critical Path: 17.11s
- Loading branch information
1 parent
f4ffa37
commit af58828
Showing
9 changed files
with
308 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.