Skip to content

Commit d97cd5d

Browse files
Release: Don't invoke mingw gcc if Windows toolchain is not built
Before this patch MinGW gcc was always invoked when running release.mk, which caused issues on systems where it is not available. Signed-off-by: Anton Kolesov <[email protected]>
1 parent ce5689a commit d97cd5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

release.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,9 @@ $O/.stamp_linux_be_hs_tarball: $O/.stamp_linux_be_hs_built
591591
# Windows build
592592
#
593593

594+
ifeq ($(ENABLE_WINDOWS_INSTALLER),y)
594595
WINDOWS_SYSROOT := $(shell $(WINDOWS_TRIPLET)-gcc -print-sysroot)/mingw
596+
endif
595597

596598
# Helper function to copy mingw .dll files to installation directories with
597599
# executable files. There are several directories and for simplicity all .dlls

0 commit comments

Comments
 (0)