This is an archive of the discontinued LLVM Phabricator instance.

[Bazel] Rework LLVM target selection
ClosedPublic

Authored by GMNGeoffrey on Jun 25 2021, 10:29 PM.

Details

Summary

This patch introduces a custom rule for expanding the LLVM target
enumeration .def files. This provides a slightly cleaner API for these
rules, but is mostly to permit selects to be used when determining which
LLVM targets to build. Right now the target list is generated at Bazel
configure time, but this will allows us to add functionality to also
control which targets are built based on config settings.

Tested: Ran bazel test --config=rbe ... @llvm-project//...

Diff Detail

Event Timeline

GMNGeoffrey requested review of this revision.Jun 25 2021, 10:29 PM
GMNGeoffrey created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2021, 10:29 PM
GMNGeoffrey edited the summary of this revision. (Show Details)Jun 25 2021, 10:30 PM
GMNGeoffrey added a reviewer: chandlerc.
This revision is now accepted and ready to land.Jun 30 2021, 4:23 PM
This revision was landed with ongoing or failed builds.Jun 30 2021, 4:53 PM
This revision was automatically updated to reflect the committed changes.