This is an archive of the discontinued LLVM Phabricator instance.

[runtimes] Remove TOOLCHAIN_TOOLS specialization
ClosedPublic

Authored by smeenai on Sep 30 2020, 6:05 PM.

Details

Summary

https://reviews.llvm.org/D88310 fixed the AIX issue in LLVMExternalProjectUtils,
so we shouldn't need the workaround in the runtimes build anymore. I'm
reverting it because it prevents the target-specific tool selection in
LLVMExternalProjectUtils from taking effect, which we rely on for our
runtimes builds.

Diff Detail

Event Timeline

smeenai created this revision.Sep 30 2020, 6:05 PM
smeenai requested review of this revision.Sep 30 2020, 6:05 PM

This sounds right. @daltenty, can you confirm that this works on the AIX builds?

This actually isn't exclusively a revert of D85329 "[AIX] Try to not use LLVM tools while building runtimes" as the title seems to suggest. Before that patch there were already explicit TOOLCHAIN_TOOLS specified in the call to llvm_ExternalProject_Add in the runtimes build, which already suppressed the target-specific tool selection as mention in the description here.

That said, I'm not opposed to the resulting change, which moves all that logic to one place rather than having an extra layer on top just for the runtimes build. We should clarify the title and description though, because removing the TOOLCHAIN_TOOLS here entirely will actually be a new change to how runtimes are built.

This actually isn't exclusively a revert of D85329 "[AIX] Try to not use LLVM tools while building runtimes" as the title seems to suggest. Before that patch there were already explicit TOOLCHAIN_TOOLS specified in the call to llvm_ExternalProject_Add in the runtimes build, which already suppressed the target-specific tool selection as mention in the description here.

That said, I'm not opposed to the resulting change, which moves all that logic to one place rather than having an extra layer on top just for the runtimes build. We should clarify the title and description though, because removing the TOOLCHAIN_TOOLS here entirely will actually be a new change to how runtimes are built.

Ah, I see what happened here. You'd made your commit initially and then it was reverted. In the meantime, I committed D86366 to remove TOOLCHAIN_TOOLS entirely from the runtimes build, and then your commit was rebased on top of that and reapplied as rGe03dd978d015, which does add the TOOLCHAIN_TOOLS back. I'll clarify the description.

smeenai retitled this revision from Revert "[AIX] Try to not use LLVM tools while building runtimes" to [runtimes] Remove TOOLCHAIN_TOOLS specialization.Oct 1 2020, 8:50 AM
smeenai edited the summary of this revision. (Show Details)
daltenty accepted this revision.Oct 1 2020, 9:48 AM

LGTM! Thanks for the clarification.

This revision is now accepted and ready to land.Oct 1 2020, 9:48 AM
This revision was landed with ongoing or failed builds.Oct 1 2020, 9:53 AM
This revision was automatically updated to reflect the committed changes.