Refactor build_utils into separate module#7
Conversation
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.
|
👋 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 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.
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.
This PR refactors the project structure by moving the
build_utilslogic into a standalone Bazel module. This prepares the code for thebuild_utilslogic to be hosted in a separate repository (https://github.com/Yuki-cpp-Lab/build_utils) as requested.The
rest_api_helpermodule now depends onbuild_utils. Due to Bazel limitations withtoolchains_llvm, the toolchain configuration remains in the rootMODULE.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_utilsmodule.PR created automatically by Jules for task 1131746148016594652 started by @Yuki-cpp