Skip to content

Commit d51b432

Browse files
committed
mk: Package libstdc++-6.dll on x86_64 MinGW
We don't need the support libgcc SEH library, but we do need the C++ standard library for running the compiler itself. cc #29208
1 parent 079f384 commit d51b432

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

mk/dist.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ prepare-overlay-$(1):
150150

151151
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)-host prepare-overlay-$(1)
152152
@$(call E, build: $$@)
153-
# On a 32-bit MinGW target we've got a few runtime DLL dependencies that we need
153+
# On a MinGW target we've got a few runtime DLL dependencies that we need
154154
# to include. THe first argument to `make-win-dist` is where to put these DLLs
155155
# (the image we're creating) and the second argument is a junk directory to
156156
# ignore all the other MinGW stuff the script creates.
157-
ifeq ($(1),i686-pc-windows-gnu)
157+
ifeq ($$(findstring pc-windows-gnu,$(1)),pc-windows-gnu)
158158
$$(Q)rm -Rf tmp/dist/win-rust-gcc-$(1)
159159
$$(Q)$$(CFG_PYTHON) $$(S)src/etc/make-win-dist.py \
160160
tmp/dist/$$(PKG_NAME)-$(1)-image \

src/etc/make-win-dist.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ def make_win_dist(rust_root, gcc_root, target_triple):
5050
rustc_dlls = ["libstdc++-6.dll"]
5151
if target_triple.startswith("i686-"):
5252
rustc_dlls.append("libgcc_s_dw2-1.dll")
53-
else:
54-
rustc_dlls.append("libgcc_s_seh-1.dll")
5553

5654
target_libs = [ # MinGW libs
5755
"crtbegin.o",

0 commit comments

Comments
 (0)