[all-commits] [llvm/llvm-project] 459420: [Bazel] Use dynamic workspace root determination

Aaron Siddhartha Mondal via All-commits all-commits at lists.llvm.org
Mon Apr 17 16:55:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 459420c33a2c80525bc73ad1ff89fdf4dd079d6c
      https://github.com/llvm/llvm-project/commit/459420c33a2c80525bc73ad1ff89fdf4dd079d6c
  Author: Aaron Siddhartha Mondal <aaron at eomii.org>
  Date:   2023-04-18 (Tue, 18 Apr 2023)

  Changed paths:
    M utils/bazel/llvm-project-overlay/clang/BUILD.bazel
    A utils/bazel/llvm-project-overlay/workspace_root.bzl

  Log Message:
  -----------
  [Bazel] Use dynamic workspace root determination

The `clang:ast` and `clang:builtin_headers_gen` targets currently use hardcoded `external/llvm-project`
paths to access generated headers.

With bzlmod this path becomes dependent on the module name, module version and module extension,
so we need a more dynamic approach.

Does not affect the WORKSPACE build.

Reviewed By: GMNGeoffrey, #bazel_build

Differential Revision: https://reviews.llvm.org/D137007




More information about the All-commits mailing list