Skip to content
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

Use in-repo gtest in buck build #6858

Closed
wants to merge 3 commits into from

Conversation

pdillinger
Copy link
Contributor

Summary: ... so that we have freedom to upgrade it (see #6808).

As a side benefit, gtest will no longer be linked into main library in
buck build.

Test Plan: fb internal build & link

Summary: ... so that we have freedom to upgrade it (see facebook#6808).

As a side benefit, gtest will no longer be linked into main library in
buck build.

Test Plan: fb internal build & link
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@pdillinger has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@riversand963 riversand963 left a comment

Choose a reason for hiding this comment

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

Thanks @pdillinger for the PR. Mostly LGTM. Could you run python buckifier/buckify_rocksdb.py?

TARGETS Outdated
@@ -114,6 +109,15 @@ ROCKSDB_LIB_DEPS = [
":rocksdb_test_lib",
] if not is_opt_mode else [":rocksdb_lib"]

# Add a directory for #include
Copy link
Contributor

Choose a reason for hiding this comment

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

How about moving these closer to line 60?

TARGETS Outdated
cpp_library(
name = "rocksdb_third_party_gtest",
srcs = ["third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc"],
headers = [u'third-party/gtest-1.8.1/fused-src/gtest/gtest.h'],
Copy link
Contributor

Choose a reason for hiding this comment

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

I think u'<string>' is not allowed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @pdillinger for the PR. Mostly LGTM. Could you run python buckifier/buckify_rocksdb.py?

Considering I've modified the generation code and there are corresponding changes to TARGETS, I obviously did, but who knows what's different in the GitHub build. Maybe it's just the problem with the existing implementation of add_library generating a u string for headers.

Move gtest_dir include into header by making a template
Print python version used for TARGETS file check
@facebook-github-bot
Copy link
Contributor

@pdillinger has updated the pull request. Re-import the pull request

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@pdillinger has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@pdillinger has updated the pull request. Re-import the pull request

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@pdillinger has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@pdillinger merged this pull request in aaafcb8.

adamretter added a commit to adamretter/rocksdb that referenced this pull request May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants