Skip to content

Refactor build_utils into separate module#7

Merged
Yuki-cpp merged 3 commits into
mainfrom
refactor-build-utils-module-1131746148016594652
Jan 23, 2026
Merged

Refactor build_utils into separate module#7
Yuki-cpp merged 3 commits into
mainfrom
refactor-build-utils-module-1131746148016594652

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This PR refactors the project structure by moving the build_utils logic into a standalone Bazel module. This prepares the code for the build_utils logic to be hosted in a separate repository (https://github.com/Yuki-cpp-Lab/build_utils) as requested.

The rest_api_helper module now depends on build_utils. Due to Bazel limitations with toolchains_llvm, the toolchain configuration remains in the root MODULE.bazel, but the strict macros (strict_cc_library, etc.) are now provided by the external module.

Documentation has been updated to explain how to use the library and how to configure the toolchain when using the build_utils module.


PR created automatically by Jules for task 1131746148016594652 started by @Yuki-cpp

Separates the build utilities and strict compilation macros into a new `build_utils` module, intended for external repository usage.

Changes:
- Created `build_utils_module/` with `MODULE.bazel`, `BUILD.bazel`, and `defs.bzl`.
- Removed old `build_utils/` directory.
- Updated root `MODULE.bazel` to depend on `build_utils` (via `local_path_override` for now).
- Updated `src/BUILD.bazel`, `tests/BUILD.bazel`, and `examples/BUILD.bazel` to load macros from `@build_utils//:defs.bzl`.
- Added `build_utils_module` to `.bazelignore`.
- Updated `.bazelrc` and documentation to reflect the new structure and required toolchain configuration in the root module.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Separates the build utilities and strict compilation macros into a new `build_utils` module, intended for external repository usage.

Changes:
- Created `build_utils_module/` with `MODULE.bazel`, `BUILD.bazel`, and `defs.bzl`.
- Removed old `build_utils/` directory.
- Updated root `MODULE.bazel` to depend on `build_utils` (via `local_path_override` for now).
- Updated `src/BUILD.bazel`, `tests/BUILD.bazel`, and `examples/BUILD.bazel` to load macros from `@build_utils//:defs.bzl`.
- Updated `.bazelignore` to exclude `build_utils_module` but removed `bazel-*` to fix Windows CI errors.
- Updated `.bazelrc` and documentation to reflect the new structure and required toolchain configuration in the root module.
Comment thread MODULE.bazel
Separates the build utilities and strict compilation macros into a new `build_utils` module, intended for external repository usage.

Changes:
- Created `build_utils_module/` with `MODULE.bazel`, `BUILD.bazel`, and `defs.bzl`.
- Removed old `build_utils/` directory.
- Updated root `MODULE.bazel` to depend on `build_utils` (via `local_path_override` for now).
- Updated `src/BUILD.bazel`, `tests/BUILD.bazel`, and `examples/BUILD.bazel` to load macros from `@build_utils//:defs.bzl`.
- Updated `.bazelignore` to exclude `build_utils_module` but removed `bazel-*` to fix Windows CI errors.
- Updated `.bazelrc` and documentation to reflect the new structure and required toolchain configuration in the root module.
@Yuki-cpp Yuki-cpp marked this pull request as ready for review January 23, 2026 02:10
@Yuki-cpp Yuki-cpp merged commit 9091a2d into main Jan 23, 2026
2 checks passed
@Yuki-cpp Yuki-cpp deleted the refactor-build-utils-module-1131746148016594652 branch January 23, 2026 02:11
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.

1 participant