[all-commits] [llvm/llvm-project] 11adae: [Clang] Make offloading flags accept '-' and '--'

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Oct 3 08:36:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11adae50892e6e94f10ce41bc738a9823a6b3251
      https://github.com/llvm/llvm-project/commit/11adae50892e6e94f10ce41bc738a9823a6b3251
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td

  Log Message:
  -----------
  [Clang] Make offloading flags accept '-' and '--'

Currently all of the flags beginning with `--offload` such as
`--offload-arch` or `--offload-device-only` require the double-dash
form. However, if a user uses a single dash it will instead name a file
'ffload-arch' for example. This has been the cause of a lot of user
confusion. This patch changes these options to also accept a single
dash. This is similar to many other driver arguments beginning with
`-o`.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list