Skip to content
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

More bazelmod preparations #93

Merged
merged 2 commits into from
Feb 23, 2025
Merged

More bazelmod preparations #93

merged 2 commits into from
Feb 23, 2025

Conversation

helly25
Copy link
Owner

@helly25 helly25 commented Feb 22, 2025

More bazelmod preparations

  • In b/.pre-commit-config.yaml
    • Prevented reformatting of .patch files
  • In MODULE.bazel
    • Changed to get hedron-compile-commands and llvm through includes so they can be patched out in modules.
  • clang-format
    • Changed //mbo//mope/clang_format/build_setting_default to "" so we automatically get to choose between repo provided and full automatic finding.
    • Changed mbo/mope/mope.bzl to:
      • If (newly) _CLANG_FORMAT_BINARY var is set, then disable sandboxing so all possible targets can actually be found.
      • Added additional location to find clang-format including both bazel 7.* and bazel 8.* locations.
      • Added ability to copy input to output file as a last fallback.
      • Added a log statement to denot the used clang-format binary and version in case an automatically found one was used.

* In `b/.pre-commit-config.yaml`
  * Prevented reformatting of .patch files
* In `MODULE.bazel`
  * Changed to get hedron-compile-commands and llvm through includes so they can be patched out in modules.
* clang-format
  * Changed `//mbo//mope/clang_format/build_setting_default` to `""` so we automatically get to choose between repo provided and full automatic finding.
  * Changed `mbo/mope/mope.bzl` to:
    * If (newly) `_CLANG_FORMAT_BINARY` var is set, then disable sandboxing so all possible targets can actually be found.
    * Added additional location to find clang-format including both bazel 7.* and bazel 8.* locations.
    * Added ability to copy input to output file as a last fallback.
    * Added a log statement to denot the used clang-format binary and version in case an automatically found one was used.
@helly25 helly25 requested review from Fab-Cat and removed request for Fab-Cat February 22, 2025 22:05
@helly25 helly25 enabled auto-merge (squash) February 22, 2025 22:07
@helly25 helly25 merged commit ca92cbf into main Feb 23, 2025
5 checks passed
@helly25 helly25 deleted the fix/bazelmod_20250222 branch February 23, 2025 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants