[all-commits] [llvm/llvm-project] 028c10: [Driver][BareMetal] Error if no matching multilib

Michael Platings via All-commits all-commits at lists.llvm.org
Thu Jun 22 00:11:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 028c1033b1ed7b35beab736dd50053f80df02fa3
      https://github.com/llvm/llvm-project/commit/028c1033b1ed7b35beab736dd50053f80df02fa3
  Author: Michael Platings <michael.platings at arm.com>
  Date:   2023-06-22 (Thu, 22 Jun 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Driver/ToolChains/BareMetal.cpp
    M clang/test/Driver/baremetal-multilib.yaml

  Log Message:
  -----------
  [Driver][BareMetal] Error if no matching multilib

Previously if no matching multilib was found then the user would
typically see an error like "fatal error: 'stdio.h' file not found"
which gives no indication as to the underlying problem.
With this change the user will instead see an error like
  clang: error: no multilib found matching flags: --target=thumbv7em-none-unknown-eabi -march=...
  clang: note: available multilibs are:
  --target=armv4t-none-unknown-eabi
  --target=thumbv6m-none-unknown-eabi -mfpu=none
  ...

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




More information about the All-commits mailing list