Stop rebuilding Proxygen StatsWrapper#6102
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f2520902e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
8f25209 to
79ac661
Compare
Generate the bundled Proxygen StatsWrapper header during CMake configuration instead of through an always-dirty custom target. This keeps the build-tree header present without making Ninja rerun the generator on every incremental build. Assisted-by: GPT-5 (pi)
79ac661 to
c562082
Compare
There was a problem hiding this comment.
Please don't invest so much time into this workaround. The issue is upstream.
You can open a PR there to change the custom command to
add_custom_command(
OUTPUT ${PROXYGEN_GENERATED_ROOT}/proxygen/lib/stats/StatsWrapper.h
COMMAND
${CMAKE_COMMAND} -E make_directory
${PROXYGEN_GENERATED_ROOT}/proxygen/lib/stats
COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/stats/gen_StatsWrapper.sh
${PROXYGEN_GENERATED_ROOT}
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/stats/gen_StatsWrapper.sh
${CMAKE_CURRENT_SOURCE_DIR}/stats/BaseStats.h
COMMENT "Generating StatsWrapper.h"
VERBATIM
)until that is available we can accept the few milliseconds the generator takes.
Once that is fixed we can drop the entire statswrapper workaround.
Edit: the code to change is in: https://github.com/facebook/proxygen/blob/main/proxygen/lib/CMakeLists.txt#L30
|
Closing this in favor of an upstream Proxygen fix: facebook/proxygen#614 The local workaround became too involved for the small incremental-build cost. Once upstream is fixed and the vendored Proxygen is updated, we can drop the existing StatsWrapper workaround entirely. |
🔍 Problem
StatsWrapper.hworkaround uses an always-dirty custom target.🛠️ Solution
💬 Review
cmake --build --preset macos-xcode-release; the second build no longer regeneratesStatsWrapper.h.