This is an archive of the discontinued LLVM Phabricator instance.

[Dexter] Mutually exclusive argument group for --builder and --binary
ClosedPublic

Authored by StephenTozer on Sep 15 2021, 8:52 AM.

Details

Summary

Dexter currently accepts two possible arguments to determine the binary used for testing; either --builder <builder> (and optionally compiler/linker flags) to build the binary, or --binary <binary> to use the provided binary directly. If both are passed, then --binary overrides --builder; if neither are passed, then an error is raised. This patch instead puts these arguments into a required mutually exclusive argument group, so that an error is automatically raised by argparse if both or neither are given.

As an additional change, the --cflags and --ldflags will now raise a warning if they are passed without the --builder flag, as they are meaningless if Dexter is using a pre-built binary.

Diff Detail

Event Timeline

StephenTozer requested review of this revision.Sep 15 2021, 8:52 AM
StephenTozer created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2021, 8:52 AM
Orlando accepted this revision.Sep 15 2021, 9:35 AM

LGTM

This revision is now accepted and ready to land.Sep 15 2021, 9:35 AM
This revision was landed with ongoing or failed builds.Sep 17 2021, 10:44 AM
This revision was automatically updated to reflect the committed changes.