[all-commits] [llvm/llvm-project] da759d: [Clang][Driver] Add option to provide path for mul...

Lucas Duarte Prates via All-commits all-commits at lists.llvm.org
Mon Oct 7 00:56:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da759dda58a7a1cbdaace26c381e1c3c5c5491ce
      https://github.com/llvm/llvm-project/commit/da759dda58a7a1cbdaace26c381e1c3c5c5491ce
  Author: Lucas Duarte Prates <lucas.prates at arm.com>
  Date:   2024-10-07 (Mon, 07 Oct 2024)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/BareMetal.cpp
    M clang/lib/Driver/ToolChains/BareMetal.h
    A clang/test/Driver/Inputs/multilib/empty.yaml
    M clang/test/Driver/baremetal-multilib-custom-error.yaml
    M clang/test/Driver/baremetal-multilib-exclusive-group.yaml
    M clang/test/Driver/baremetal-multilib-group-error.yaml
    M clang/test/Driver/baremetal-multilib-layered.yaml
    M clang/test/Driver/baremetal-multilib.yaml
    M clang/test/Driver/print-multi-selection-flags.c

  Log Message:
  -----------
  [Clang][Driver] Add option to provide path for multilib's YAML config file (#109640)

Since the introduction of the use of a YAML file to configure the
selection of multilibs for baremetal, the path for that file has been
hardcoded into the clang driver code. This makes it difficult to provide
any alternative configurations for multilib and, by consequence, impacts
the tetability of any changes related to it - e.g. the existing multilib
YAML tests currently rely on creating fake toolchain directories to
inject their own configuration files.

This change introduces a new command line option to the clang driver,
`--multi-lib-config=`, to enable the use of a custom path to be used
when loading the multilib YAML config file. It also updates the existing
multilib YAML tests to use the new option.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list