[all-commits] [llvm/llvm-project] 9c0366: [Dexter] Mutually exclusive argument group for --b...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Fri Sep 17 10:44:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c036627483850135c41493f77aa7f42224a8523
      https://github.com/llvm/llvm-project/commit/9c036627483850135c41493f77aa7f42224a8523
  Author: Tozer <stephen.tozer at sony.com>
  Date:   2021-09-17 (Fri, 17 Sep 2021)

  Changed paths:
    M cross-project-tests/debuginfo-tests/dexter/dex/builder/ParserOptions.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/TestToolBase.py

  Log Message:
  -----------
  [Dexter] Mutually exclusive argument group for --builder and --binary

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.

Reviewed By: Orlando

Differential Revision: https://reviews.llvm.org/D109833




More information about the All-commits mailing list