[all-commits] [llvm/llvm-project] c0bb75: [Multilib] Add -fmultilib-flag command-line option

Victor Campos via All-commits all-commits at lists.llvm.org
Tue Dec 10 04:51:45 PST 2024


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

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChain.cpp
    M clang/test/Driver/print-multi-selection-flags.c

  Log Message:
  -----------
  [Multilib] Add -fmultilib-flag command-line option

This option is passed through to the multilib system. It is then used in
conjunction with other options to select the proper library variant.

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


  Commit: c31b7fb1d76d17f2f883f1d85b48ffa4d92cea14
      https://github.com/llvm/llvm-project/commit/c31b7fb1d76d17f2f883f1d85b48ffa4d92cea14
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M clang/include/clang/Driver/Driver.h
    M clang/include/clang/Driver/Multilib.h
    M clang/include/clang/Driver/ToolChain.h
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/Multilib.cpp
    M clang/lib/Driver/ToolChains/BareMetal.cpp
    M clang/lib/Driver/ToolChains/BareMetal.h
    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: a432266f72a1f4ad856078c4fd8d10df2e35a7bb
      https://github.com/llvm/llvm-project/commit/a432266f72a1f4ad856078c4fd8d10df2e35a7bb
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M clang/lib/Driver/Driver.cpp

  Log Message:
  -----------
  Fix clang-format errors


  Commit: dfc40b76699b1ea5c66083bd909cc9a638cfbb99
      https://github.com/llvm/llvm-project/commit/dfc40b76699b1ea5c66083bd909cc9a638cfbb99
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M clang/test/Driver/baremetal-multilib-custom-flags.yaml

  Log Message:
  -----------
  Disable test on Windows

The expected output is reliant on the syntax of file hierarchy. This
varies significantly between Linux and Windows. Following what other
multilib tests do, I am disabling the test on Windows.


  Commit: 3bc43d3eddf79dd85a30d17c47b853eabf68ebb8
      https://github.com/llvm/llvm-project/commit/3bc43d3eddf79dd85a30d17c47b853eabf68ebb8
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M clang/include/clang/Driver/Multilib.h
    M clang/include/clang/Driver/ToolChain.h
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/Multilib.cpp
    M clang/lib/Driver/ToolChains/BareMetal.cpp
    M clang/lib/Driver/ToolChains/BareMetal.h
    M clang/test/Driver/baremetal-multilib-custom-flags.yaml

  Log Message:
  -----------
  Repurpose DriverArgs to MacroDefines


Compare: https://github.com/llvm/llvm-project/compare/f6ff48d079f5...3bc43d3eddf7

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