[all-commits] [llvm/llvm-project] 32f792: [CMake/Bazel] Support usage of opt driver as a lib...

William Moses via All-commits all-commits at lists.llvm.org
Wed Jan 24 10:39:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32f7922646d5903f63d16c9fbfe3d508b0f8cda7
      https://github.com/llvm/llvm-project/commit/32f7922646d5903f63d16c9fbfe3d508b0f8cda7
  Author: William Moses <gh at wsmoses.com>
  Date:   2024-01-24 (Wed, 24 Jan 2024)

  Changed paths:
    M llvm/tools/opt/CMakeLists.txt
    M llvm/tools/opt/NewPMDriver.cpp
    M llvm/tools/opt/NewPMDriver.h
    M llvm/tools/opt/opt.cpp
    A llvm/tools/opt/optdriver.cpp
    M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

  Log Message:
  -----------
  [CMake/Bazel] Support usage of opt driver as a library (#79205)

In Bazel, Clang current separates the clang executable into a
clang-driver library, and the actual clang executable. This allows
downstream users to make their own variations of clang, without having
to redo/maintain separate build pipelines.

This adds the same for opt for both CMake and Bazel.




More information about the All-commits mailing list