[all-commits] [llvm/llvm-project] 951f36: [clang-cl] Add a /diasdkdir flag and make /winsysr...

Nico Weber via All-commits all-commits at lists.llvm.org
Thu Sep 16 04:43:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 951f362e2560fe1c9c05f487107fd9882d45d867
      https://github.com/llvm/llvm-project/commit/951f362e2560fe1c9c05f487107fd9882d45d867
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/MSVC.cpp
    M clang/test/Driver/cl-sysroot.cpp

  Log Message:
  -----------
  [clang-cl] Add a /diasdkdir flag and make /winsysroot imply it

D109708 added "DIA SDK" to our win sysroot for hermetic builds
that use LLVM_ENABLE_DIA_SDK. But the build system still has to
manually pass flags pointing to it.

Since we have a /winsysroot flag, make it look at DIA SDK in
the sysroot.

With this, the following is enough to compile the DIA2Dump example:

out\gn\bin\clang-cl ^
  "sysroot\DIA SDK\Samples\DIA2Dump\DIA2Dump.cpp" ^
  "sysroot\DIA SDK\Samples\DIA2Dump\PrintSymbol.cpp" ^
  "sysroot\DIA SDK\Samples\DIA2Dump\regs.cpp" ^
  /diasdkdir "sysroot\DIA SDK" ^
  ole32.lib oleaut32.lib diaguids.lib

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




More information about the All-commits mailing list