Bug 1963727 - Set dlltool when building rust code while targeting mingw. r=firefox-build-system-reviewers,sergesanspaille

The rust compiler needs to use dlltool since the chrono upgrade because
of the use of raw-dylibs, and this requires the tool to be used from the
right location, which we already have out of configure.

Differential Revision: https://phabricator.services.mozilla.com/D247533
This commit is contained in:
Mike Hommey
2025-05-02 07:25:42 +00:00
committed by mh@glandium.org
parent 0dee2795f2
commit 9ea53c936b

View File

@@ -325,6 +325,10 @@ RUSTC_BOOTSTRAP := 1
endif endif
endif endif
ifeq (WINNT_clang,$(OS_ARCH)_$(CC_TYPE))
RUSTFLAGS += -C dlltool=$(LLVM_DLLTOOL)
endif
$(target_rust_ltoable): RUSTFLAGS:=$(rustflags_override) $(rustflags_sancov) $(RUSTFLAGS) $(rust_pgo_flags) \ $(target_rust_ltoable): RUSTFLAGS:=$(rustflags_override) $(rustflags_sancov) $(RUSTFLAGS) $(rust_pgo_flags) \
$(if $(MOZ_LTO_RUST_CROSS),\ $(if $(MOZ_LTO_RUST_CROSS),\
-Clinker-plugin-lto \ -Clinker-plugin-lto \