Skip to content

Migrate folly generate_cmake.py to shared library + add select() support#2595

Closed
afrind wants to merge 1 commit intofacebook:mainfrom
afrind:export-D95579501
Closed

Migrate folly generate_cmake.py to shared library + add select() support#2595
afrind wants to merge 1 commit intofacebook:mainfrom
afrind:export-D95579501

Conversation

@afrind
Copy link
Copy Markdown
Contributor

@afrind afrind commented Mar 7, 2026

Summary:

  • Import shared parsing functions from opensource.buck_to_cmake.buck_parser
    instead of reimplementing extract_list, extract_external_deps, etc.
  • Add select() support for deps/exported_deps: non-DEFAULT branches are
    now emitted as conditional CMake variables (if/endif blocks)
  • Remove EXTRA_TARGET_DEPS for folly/result/epitaph since the dep is now
    correctly picked up from the select() DEFAULT branch
  • Regenerate folly/detail/CMakeLists.txt and folly/portability/provide/CMakeLists.txt
    with newly discovered conditional deps

Differential Revision: D95579501

Summary:
- Import shared parsing functions from opensource.buck_to_cmake.buck_parser
  instead of reimplementing extract_list, extract_external_deps, etc.
- Add select() support for deps/exported_deps: non-DEFAULT branches are
  now emitted as conditional CMake variables (if/endif blocks)
- Remove EXTRA_TARGET_DEPS for folly/result/epitaph since the dep is now
  correctly picked up from the select() DEFAULT branch
- Regenerate folly/detail/CMakeLists.txt and folly/portability/provide/CMakeLists.txt
  with newly discovered conditional deps

Differential Revision: D95579501
@meta-cla meta-cla Bot added the CLA Signed label Mar 7, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 7, 2026

@afrind has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95579501.

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 8, 2026

This pull request has been merged in da3cbd9.

meta-codesync Bot pushed a commit to facebook/hhvm that referenced this pull request Mar 8, 2026
Summary:
X-link: facebook/folly#2595

- Import shared parsing functions from opensource.buck_to_cmake.buck_parser
  instead of reimplementing extract_list, extract_external_deps, etc.
- Add select() support for deps/exported_deps: non-DEFAULT branches are
  now emitted as conditional CMake variables (if/endif blocks)
- Remove EXTRA_TARGET_DEPS for folly/result/epitaph since the dep is now
  correctly picked up from the select() DEFAULT branch
- Regenerate folly/detail/CMakeLists.txt and folly/portability/provide/CMakeLists.txt
  with newly discovered conditional deps

Reviewed By: yfeldblum

Differential Revision: D95579501

fbshipit-source-id: f14ba05082623774a7f4191454f8e1362a26b961
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.

2 participants