Skip to content

Fix fmt::format include in AtomicBatchDispatcher.cpp#2663

Closed
afrind wants to merge 2 commits into
facebook:mainfrom
afrind:fix-atomic-batch-dispatcher-fmt-include
Closed

Fix fmt::format include in AtomicBatchDispatcher.cpp#2663
afrind wants to merge 2 commits into
facebook:mainfrom
afrind:fix-atomic-batch-dispatcher-fmt-include

Conversation

@afrind

@afrind afrind commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

fmt::format is declared in <fmt/format.h>, not <fmt/core.h> on newer fmt (11/12). This file does not pull in format.h transitively, so it fails to build against newer fmt (e.g. homebrew on macOS CI).

fmt::format is declared in <fmt/format.h>, not <fmt/core.h> on newer
fmt (11/12). This file does not pull in format.h transitively, so it
fails to build against newer fmt (e.g. homebrew on macOS CI).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@meta-cla meta-cla Bot added the CLA Signed label Jun 25, 2026
Newer fmt (11/12) has no formatter for std::byte, so formatting a
std::span<std::byte> via fmt/ranges.h is a hard error. Widen each
element to an integer for the diagnostic message.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@meta-codesync

meta-codesync Bot commented Jun 26, 2026

Copy link
Copy Markdown

@afrind has imported this pull request. If you are a Meta employee, you can view this in D109797682.

@meta-codesync meta-codesync Bot closed this in 2890f39 Jun 26, 2026
@meta-codesync meta-codesync Bot added the Merged label Jun 26, 2026
@meta-codesync

meta-codesync Bot commented Jun 26, 2026

Copy link
Copy Markdown

@afrind merged this pull request in 2890f39.

meta-codesync Bot pushed a commit to facebook/hhvm that referenced this pull request Jun 26, 2026
Summary:
fmt::format is declared in <fmt/format.h>, not <fmt/core.h> on newer fmt (11/12). This file does not pull in format.h transitively, so it fails to build against newer fmt (e.g. homebrew on macOS CI).

X-link: facebook/folly#2663

Reviewed By: sandarsh

Differential Revision: D109797682

Pulled By: afrind

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

1 participant