[all-commits] [llvm/llvm-project] 83feaa: [clang-cl] make -f(no-)ident a CoreOption

Nico Weber via All-commits all-commits at lists.llvm.org
Mon Mar 1 08:56:06 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83feaa36ad53ce93ed808169d3316ed757703e47
      https://github.com/llvm/llvm-project/commit/83feaa36ad53ce93ed808169d3316ed757703e47
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/test/Driver/cl-options.c

  Log Message:
  -----------
  [clang-cl] make -f(no-)ident a CoreOption

On clang emits the compiler version string into debug information
by default for both dwarf and codeview. That makes compiler output
needlessly compiler-version-dependent which makes e.g. comparing
object file outputs during a bisect hard. So it's nice if there's
an easy way to turn this off.

(On ELF, this flag also controls the .comment section, but that
part is ELF-only. The debug-info bit isn't.)

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




More information about the All-commits mailing list