[all-commits] [llvm/llvm-project] f2525e: [Multilib] Custom flags processing for library sel...

Victor Campos via All-commits all-commits at lists.llvm.org
Mon Nov 4 07:41:59 PST 2024


  Branch: refs/heads/users/vhscampos/multilib-flags-processing
  Home:   https://github.com/llvm/llvm-project
  Commit: f2525efdd1f70c59923220b787be005903bdced5
      https://github.com/llvm/llvm-project/commit/f2525efdd1f70c59923220b787be005903bdced5
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2024-11-04 (Mon, 04 Nov 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Multilib.h
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/Multilib.cpp
    A clang/test/Driver/baremetal-multilib-custom-flags.yaml

  Log Message:
  -----------
  [Multilib] Custom flags processing for library selection

Select library variants in the multilib system using the flags passed
following the '-fmultilib-flag=' format.

Multilib flags that were not passed in the command-line have their
default value fed into the library selection mechanism.

A warning is shown if the flag's value name is invalid. If the wrong
name is close enough to any valid one, according to edit distance, the
closest valid value name is suggested.

Details about this change can be found in this thread:
https://discourse.llvm.org/t/rfc-multilib-custom-flags/81058


  Commit: b5af73aa03a755c07fd11cb4402724504141f786
      https://github.com/llvm/llvm-project/commit/b5af73aa03a755c07fd11cb4402724504141f786
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2024-11-04 (Mon, 04 Nov 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Driver/Multilib.cpp
    M clang/test/Driver/baremetal-multilib-custom-flags.yaml

  Log Message:
  -----------
  Address comments

- Replaced warnings by errors as suggested.
- Added comments to the more intricate parts.


Compare: https://github.com/llvm/llvm-project/compare/838993d1fa75...b5af73aa03a7

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