Skip to content

Conversation

@DanielMahu
Copy link
Contributor

@DanielMahu DanielMahu requested a review from coryan December 12, 2017 02:07
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 12, 2017
Copy link
Contributor

@coryan coryan left a 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"]
Copy link
Contributor

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).

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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. :-)

Copy link
Contributor Author

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).

@coryan coryan mentioned this pull request Dec 12, 2017
@DanielMahu DanielMahu closed this Dec 13, 2017
@DanielMahu DanielMahu deleted the add-cctz branch December 13, 2017 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants