[all-commits] [llvm/llvm-project] a67b85: Add llvm-dlltool to the toolchain list (#72563)

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Fri Nov 17 02:39:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a67b85ef63c7ec29c2076294e3f7c7f923144a53
      https://github.com/llvm/llvm-project/commit/a67b85ef63c7ec29c2076294e3f7c7f923144a53
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2023-11-17 (Fri, 17 Nov 2023)

  Changed paths:
    M llvm/cmake/modules/AddLLVM.cmake

  Log Message:
  -----------
  Add llvm-dlltool to the toolchain list (#72563)

This adds dlltool to the list of tools which don't get excluded from
installation when LLVM_INSTALL_TOOLCHAIN_ONLY is set.

The most important effect here is that this tool will now be included in
the official Windows release.

While llvm-lib reuses the dlltool machinary internally and has many of
the same capabilities, it does not expose the functionality controller
by the '-k' flag, which is currently the only way to create import
libraries for i386 with stdcall symbols from a module definition alone.

We avoid changing llvm-lib tool, since it is designed to emulate LIB.EXE
from MSVC toolchain, and as this functionality is not supported there,
we would have had to introduce an LLVM extension flag in order to
support it.

See https://reviews.llvm.org/D36548 for reference on rationale for
dlltool '-k' flag.




More information about the All-commits mailing list