[all-commits] [llvm/llvm-project] 49c248: clang-cl: Remove /Zd flag

Nico Weber via All-commits all-commits at lists.llvm.org
Thu Dec 17 12:40:14 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49c248bd62a3cb2f0e7e3991ee0190943bd2bbec
      https://github.com/llvm/llvm-project/commit/49c248bd62a3cb2f0e7e3991ee0190943bd2bbec
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-12-17 (Thu, 17 Dec 2020)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/MSVC.cpp
    M clang/test/Driver/cl-options.c

  Log Message:
  -----------
  clang-cl: Remove /Zd flag

cl.exe doesn't understand Zd (in either MSVC 2017 or 2019), so neiter
should we. It used to do the same as `-gline-tables-only` which is
exposed as clang-cl flag as well, so if you want this behavior, use
`gline-tables-only`. That makes it clear that it's a clang-cl-only flag
that won't work with cl.exe.

Motivated by the discussion in D92958.

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




More information about the All-commits mailing list