This is an archive of the discontinued LLVM Phabricator instance.

[llvm-driver] Add various tools to the llvm-driver
ClosedPublic

Authored by abrachet on Oct 5 2022, 9:24 AM.

Details

Summary

The llvm-driver, enabled with LLVM_TOOL_LLVM_DRIVER_BUILD combines many llvm executables
into one to save overall toolchain size. This patch adds a few more llvm tools to the
llvm-driver.

Diff Detail

Event Timeline

abrachet created this revision.Oct 5 2022, 9:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 9:24 AM
abrachet requested review of this revision.Oct 5 2022, 9:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 9:24 AM
MaskRay accepted this revision.Oct 5 2022, 1:05 PM
This revision is now accepted and ready to land.Oct 5 2022, 1:05 PM

+@thakis for gn changes.

thakis added a comment.Oct 5 2022, 2:29 PM

Thanks for doing the GN part, too! I patched this in and verified that everything builds fine at least on macOS.

llvm/utils/gn/secondary/llvm/tools/llvm-lipo/BUILD.gn
5

If it's not too much trouble, keep alphabetized (or run llvm/utils/gn/get.py followed by llvm/utils/gn/gn.py format llvm/utils/gn/secondary/llvm/tools/*/BUILD.gn to let gn do it for you).

thakis accepted this revision.Oct 5 2022, 2:32 PM

(forgot to hit the "accept" button)

This revision was landed with ongoing or failed builds.Oct 5 2022, 10:17 PM
This revision was automatically updated to reflect the committed changes.
abrachet marked an inline comment as done.Oct 5 2022, 10:19 PM
abrachet added inline comments.
llvm/utils/gn/secondary/llvm/tools/llvm-lipo/BUILD.gn
5

Sure, done in commit