This is an archive of the discontinued LLVM Phabricator instance.

[llvm][cmake] Improve error message about unknown build targets
AbandonedPublic

Authored by tbaeder on Oct 19 2021, 3:47 AM.

Details

Reviewers
hintonda
beanz
Summary

If a build target was previously not in LLVM_ALL_TARGETS, but also not
in LLVM_EXPERIMENTAL_TARGETS_TO_BUILD, cmake would still tell people to
pass it via LLVM_EXPERIMENTAL_TARGETS_TO_BUILD.

Diff Detail

Event Timeline

tbaeder created this revision.Oct 19 2021, 3:47 AM
tbaeder requested review of this revision.Oct 19 2021, 3:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2021, 3:47 AM
beanz requested changes to this revision.Oct 21 2021, 9:51 AM
beanz added a subscriber: beanz.

The current workflow for experimental targets is something like:

cmake <args> -DLLVM_TARGETS_TO_BUILD=<targets llvm knows about> -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=MyTarget

If I'm reading your cage correctly, you make this an error, instead requiring:

cmake <args> -DLLVM_TARGETS_TO_BUILD=<targets llvm knows about>;MyTarget -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=MyTarget

I'm not sure that's the workflow change we want.

This revision now requires changes to proceed.Oct 21 2021, 9:51 AM
tbaeder abandoned this revision.Oct 21 2021, 9:57 AM