Skip to content

Fix build_apple_frameworks.sh to use proper EXECUTORCH_ENABLE_LOGGING… #12469

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

Merged
merged 3 commits into from
Jul 15, 2025

Conversation

shoumikhin
Copy link
Contributor

@shoumikhin shoumikhin commented Jul 15, 2025

EXECUTORCH_ENABLE_LOGGING doesn't pick up based on the build mode, as it should based on default.cmake
Meanwhile macOS preset in macos.cmake always enabled logging due to the fact it includes pybind.cmake which deliberately enables it with an override.
Thus for Apple frameworks build we get logging disabled permanently, except for macos where it's always enabled based on a pretty unrelated pybind settings.

@shoumikhin shoumikhin added the release notes: none Do not include this in the release notes label Jul 15, 2025
Copy link

pytorch-bot bot commented Jul 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12469

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-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 Jul 15, 2025
@shoumikhin shoumikhin merged commit bbe90bd into main Jul 15, 2025
99 of 100 checks passed
@shoumikhin shoumikhin deleted the shoumikhin-patch-1 branch July 15, 2025 02:24
@shoumikhin
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/0.7 -c regression

pytorchbot pushed a commit that referenced this pull request Jul 15, 2025
#12469)

EXECUTORCH_ENABLE_LOGGING doesn't pick up based on the build mode, as it
should based on
[default.cmake](https://github.com/pytorch/executorch/blob/main/tools/cmake/preset/default.cmake#L20)
Meanwhile macOS preset in macos.cmake always enabled logging due to the
fact it includes
[pybind.cmake](https://github.com/pytorch/executorch/blob/main/tools/cmake/preset/pybind.cmake#L10-L13)
which deliberately enables it with an override.
Thus for Apple frameworks build we get logging disabled permanently,
except for macos where it's always enabled based on a pretty unrelated
pybind settings.

(cherry picked from commit bbe90bd)
@pytorchbot
Copy link
Collaborator

Cherry picking #12469

The cherry pick PR is at #12473 and it is recommended to link a regression cherry pick PR with an issue. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

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. release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants