Skip to content

Conversation

wilhuff
Copy link
Contributor

@wilhuff wilhuff commented Dec 12, 2017

When we open sourced the iOS SDK we included some prerelease code from the abseil project (with their blessing). Now that abseil has shipped, use the imports of the real sources (in #543 and #550) to implement ordered_code, removing some technical debt.


#include <assert.h>

#include <absl/base/internal/endian.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this file itself has been ported from absl. (Otherwise, all the 'internal' references are a bit scary.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file originated in google3's //strings. It's been open sourced several times: most recently (before firestore) in tensorflow.

Unfortunately, this file is not (perhaps yet) in abseil. On plus side because of their common usage within google3 these macros aren't going away anytime soon. Their status in abseil is essentially that they're required but not a committed interface.

In any case, we're depending on a checked-in stable snapshot of abseil for this so we can control when we update and how to deal with it at the time. Worst case, we check-in a separate snapshot of unaligned_access.h if upstream completely breaks this.

@wilhuff wilhuff merged commit a4d2614 into master Dec 12, 2017
@wilhuff wilhuff deleted the wilhuff/use-abseil branch December 12, 2017 03:50
gsoltis pushed a commit that referenced this pull request Dec 18, 2017
* Add abseil bits to the iOS build

* Migrate from prerelease to published abseil bits in ordered_code

* Remove prerelease abseil code
minafarid pushed a commit to minafarid/firebase-ios-sdk that referenced this pull request Jun 6, 2018
* Add abseil bits to the iOS build

* Migrate from prerelease to published abseil bits in ordered_code

* Remove prerelease abseil code
@firebase firebase locked and limited conversation to collaborators Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants