This is an archive of the discontinued LLVM Phabricator instance.

Simplify setting up LLVM as bazel external repo
ClosedPublic

Authored by csigg on Aug 18 2021, 12:08 AM.

Details

Summary

Only require one intermediate repository instead of two.
Fewer parameters in llvm_config.

Second attempt of https://reviews.llvm.org/D107714, this time also updating third_party_build and deps_impl paths.

Diff Detail

Event Timeline

csigg created this revision.Aug 18 2021, 12:08 AM
csigg requested review of this revision.Aug 18 2021, 12:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2021, 12:08 AM
csigg edited the summary of this revision. (Show Details)Aug 18 2021, 12:10 AM

Huh I guess this works. To me the labels having //utils/bazel in them is pretty confusing because the WORKSPACE file is under utils/bazel already... Then again, making the way this loads the llvm-project repository consistent with how a dependency would load it is nice I guess. Let me make sure that this works for dependent projects (I missed some subtleties on the last one)

GMNGeoffrey accepted this revision.Aug 18 2021, 6:30 PM

Although as a counterpoint, maybe this means that all labels here and in the llvm-project-overlay will reference things relative to the LLVM root, so maybe that's less confusing. I probably just got used to the way things were. I tried this out with the IREE build and it seems to work fine.

This revision is now accepted and ready to land.Aug 18 2021, 6:30 PM
izuk added a subscriber: izuk.Aug 18 2021, 8:33 PM
This revision was automatically updated to reflect the committed changes.