-
Notifications
You must be signed in to change notification settings - Fork 433
Add cctz as a submodule. #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is needed by abseil.io, in particular for Mutex. This is step 2 from https://github.com/abseil/abseil-cpp/blob/master/CMake/README.md
coryan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason we need to use absl::Mutex? I find the arguments for it uncompelling.
And if cctz is a dependency why is it not included in abseil.io? Do you know? And how are we supposed to keep these two libraries to consistent revisions?
| [submodule "third_party/abseil"] | ||
| path = third_party/abseil | ||
| url = https://github.com/abseil/abseil-cpp.git | ||
| [submodule "third_party/cctz"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh. Why does abseil not install cctz? And how do we make sure we update both at the same time (and to a consistent revision).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They do, they bring it into their WORKSPACE file, presumably for a Bazel build:
# CCTZ (Time-zone framework). http_archive( name = "com_googlesource_code_cctz", urls = ["https://github.com/google/cctz/archive/master.zip"], strip_prefix = "cctz-master", )
Since we're not using Bazel, we need to get the dependency ourselves.
Note that they don't pin it to a specific version, they just get it from the latest master at the time of build, so we don't have to worry about getting a specific "compatible" version since they don't do it themselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. Thanks! Still wondering about why we need absl::Mutex though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a question for @DanielMahu. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was just inertia on my part, std::mutex should be great too. In which case we can forget about linking with Abseil (and cctz).
This is needed by abseil.io, in particular for Mutex. This is step 2 from
https://github.com/abseil/abseil-cpp/blob/master/CMake/README.md