apparently link.exe -dump is a short for dumpbin.exe

So use the latter, in case we'll want to use lld-link, as that one
doesn't know -link.

Change-Id: I35e05064da06741cae1aa267b455e22741fef090
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126157
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
Luboš Luňák
2021-11-30 22:19:19 +01:00
committed by Luboš Luňák
parent fe1da0ce2e
commit 9425ea3f8f
2 changed files with 3 additions and 2 deletions

View File

@@ -296,8 +296,8 @@ $(call gb_Helper_abbreviate_dirs,\
$(if $(filter Executable,$(TARGETTYPE)),&& mt.exe $(MTFLAGS) -nologo -manifest $(SRCDIR)/solenv/gbuild/platform/DeclareDPIAware.manifest -updateresource:$(1)\;1 ) \
$(if $(filter Library,$(TARGETTYPE)),&& \
echo $(notdir $(1)) > $(WORKDIR)/LinkTarget/$(2).exports.tmp && \
$(gb_LINK) \
-dump -exports $(ILIBTARGET) \
$(gb_DUMPBIN) \
-exports $(ILIBTARGET) \
>> $(WORKDIR)/LinkTarget/$(2).exports.tmp && \
$(call gb_Helper_replace_if_different_and_touch,$(WORKDIR)/LinkTarget/$(2).exports.tmp,$(WORKDIR)/LinkTarget/$(2).exports,$(1))) \
; \

View File

@@ -26,6 +26,7 @@ include $(GBUILDDIR)/platform/windows.mk
gb_CC := cl
gb_CXX := cl
gb_LINK := link
gb_DUMPBIN := dumpbin
gb_AWK := awk
gb_CLASSPATHSEP := ;
gb_RC := rc