[all-commits] [llvm/llvm-project] ea7e69: [Driver] Drop incorrect hint from err_target_unkno...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon May 1 18:23:03 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea7e69f392b29201502cdcb8cfa83f0f3704da34
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-05-01 (Mon, 01 May 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticCommonKinds.td
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/test/Driver/unsupported-target-arch.c
    M clang/test/Misc/serialized-diags-unknown-target.c

  Log Message:
  [Driver] Drop incorrect hint from err_target_unknown_triple

For an unknown target triple, the ", please use -triple or -arch" hint of the
diagnostic is almost always wrong.
For cc1, the error is due to a specified but unknown -triple.
For driver, -triple and -arch are not driver options.

More information about the All-commits mailing list