[all-commits] [llvm/llvm-project] 29a500: [CodeView][clang] Add flag to disable emitting com...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Nov 1 13:08:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29a500b346bdd998cac237f8570c6957730e086a
      https://github.com/llvm/llvm-project/commit/29a500b346bdd998cac237f8570c6957730e086a
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/CodeGen/debug-info-codeview-buildinfo.c
    A clang/test/Driver/gcodeview-command-line.c

  Log Message:
  -----------
  [CodeView][clang] Add flag to disable emitting command line into CodeView

In https://reviews.llvm.org/D80833, there were concerns about
determinism emitting the commandline into CodeView. We're actually
hitting these when running clang-cl on Linux (cross compiling) versus on
Windows (e.g. -fmessage-length being inferred on terminals).

Add -g[no-]codeview-command-line to enable/disable this feature.
It's still on by default to preserve the current state of clang.

Reviewed By: thakis, rnk

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




More information about the All-commits mailing list