Skip to content

Bump nlohmann_json to 3.12.0 so Fantom's tester builds with newer Clang - #59675

Merged
javache merged 1 commit into
react:mainfrom
lazerg:fix/issue-59667-nlohmann-json-3.12
Oct 30, 2026
Merged

javache merged 1 commit into
react:mainfrom
lazerg:fix/issue-59667-nlohmann-json-3.12

Conversation

@lazerg

@lazerg lazerg commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Summary:

Fantom's tester builds with -Wall -Werror, and nlohmann_json 3.11.2 declares its literal operators as operator "" _json. Newer Clang flags the space before the suffix with -Wdeprecated-literal-operator, so the build stops in json.hpp. nlohmann_json 3.12.0 writes them as operator""_json, so this bumps the pinned version. Fantom is the only consumer of this version entry.

Fixes #59667

Changelog:

[INTERNAL] [FIXED] - Bump nlohmann_json to 3.12.0 so Fantom's tester builds with newer Clang

Test Plan:

Compiled a file that includes <nlohmann/json.hpp> with clang++ -std=c++20 -Wall -Werror (Apple clang 21). Against 3.11.2 it fails with the four -Wdeprecated-literal-operator errors from the issue; against 3.12.0 it builds. Also built and ran the parse/is_discarded/operator[] calls PackagerConnection.cpp makes against 3.12.0 with the same flags.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 30, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 30, 2026
@lazerg

lazerg commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

The ios-simulator Debug slice failed before the build started: the runner could not resolve actions/setup-node@v6. This change does not cause it.

@meta-codesync

meta-codesync Bot commented Oct 30, 2026

Copy link
Copy Markdown

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

@cipolleschi

Copy link
Copy Markdown
Contributor

@lazerg could you rebase on top of main?

@lazerg
lazerg force-pushed the fix/issue-59667-nlohmann-json-3.12 branch from e41178d to 711aeb6 Compare October 30, 2026 16:09
@lazerg

lazerg commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Rebased on main.

@javache
javache merged commit 4930592 into react:main Oct 30, 2026
82 of 83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fantom's tester does not build with Clang 23: nlohmann_json 3.11.2 trips -Wdeprecated-literal-operator under -Werror

3 participants