[all-commits] [llvm/llvm-project] 591c4b: [Driver] Remove misused NoXarchOption from some Wi...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jun 12 15:50:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 591c4b64b3650884c2c68eb47d755ebb62981b99
      https://github.com/llvm/llvm-project/commit/591c4b64b3650884c2c68eb47d755ebb62981b99
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-06-12 (Mon, 12 Jun 2023)

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

  Log Message:
  -----------
  [Driver] Remove misused NoXarchOption from some Windows options

If an option has the `NoXarchOption` flag, ClangDriver will emit an error if the
option is used after `-Xarch_*` (originally for universal macOS binary, reused
by `-Xarch_host`/etc). The error checking only applies to a small set of options
(e.g. `-o`) and is not very useful for most options, but `NoXarchOption` was
traditionally named `DriverOption` (commit
aabb0b11a3c1d8a6bb859db80400cffdcc9b336f) and lured some contributors to add
`NoXarchOption` to options that should not have the flag.




More information about the All-commits mailing list