[all-commits] [llvm/llvm-project] c09b6f: [bazel] Add support for LLVM_TOOL_LLVM_DRIVER_BUIL...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Fri Mar 29 09:20:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c09b6fac12b0299841bf1bf04974712963736db5
      https://github.com/llvm/llvm-project/commit/c09b6fac12b0299841bf1bf04974712963736db5
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2024-03-29 (Fri, 29 Mar 2024)

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

  Log Message:
  -----------
  [bazel] Add support for LLVM_TOOL_LLVM_DRIVER_BUILD (#86879)

This adds the bazel equivalent of the `llvm` binary produced by
`LLVM_TOOL_LLVM_DRIVER_BUILD` in cmake. For the initial commit, this
only includes `llvm-ar`, `llvm-nm`, and `llvm-size`. The rest are
trivial to add in a followup commit, following the same pattern as here.

By default it will include everything that supports the llvm-driver
model, but it can be reduced to only build a subset, e.g. this will
build only nm and size:

```
$ bazel build \
    -- at llvm-project//llvm:driver-tools=llvm-nm,llvm-size \
    @llvm-project//llvm:llvm
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list