This is an archive of the discontinued LLVM Phabricator instance.

[diagtool] Install diagtool when LLVM_INSTALL_TOOLCHAIN_ONLY is ON.
ClosedPublic

Authored by vsapsai on May 28 2020, 5:18 PM.

Details

Summary

Not sure about other platforms but install-xcode-toolchain was already
including diagtool in the toolchain. This change makes it possible to
install diagtool during Apple's 2-stage build.

Instead of dropping if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) conditional
I've switched to add_clang_tool which handles install targets. Also a
few other clang tools like clang-format, clang-scan-deps are using this
macro, so it is good to be consistent.

rdar://problem/15386909

Diff Detail

Event Timeline

vsapsai created this revision.May 28 2020, 5:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 28 2020, 5:18 PM
JDevlieghere accepted this revision.May 28 2020, 7:57 PM

Thanks, Volodymyr!

This revision is now accepted and ready to land.May 28 2020, 7:57 PM
This revision was automatically updated to reflect the committed changes.

Thanks for the review, Jonas!