[all-commits] [llvm/llvm-project] 6e4bbb: [ELF] Enforce double-dash form for --color-diagnos...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Jan 6 01:02:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e4bbbfcc8327465440da38d86f1f4b37d452e43
      https://github.com/llvm/llvm-project/commit/6e4bbbfcc8327465440da38d86f1f4b37d452e43
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M lld/ELF/Options.td
    M lld/test/ELF/color-diagnostics.test

  Log Message:
  -----------
  [ELF] Enforce double-dash form for --color-diagnostics/--rsp-quoting/--symbol-ordering-file

They are LLD-specific and by convention we enforce the double-dash form to avoid
collision with short options (e.g. weird `-c olor-diagnostics` interpretation in
GNU ld). They are rarely used and to the best of my investigation the undesired
single-dash forms are not used in the wild.




More information about the All-commits mailing list