aboutsummaryrefslogtreecommitdiff
path: root/depends/hosts/mingw32.mk
diff options
context:
space:
mode:
Diffstat (limited to 'depends/hosts/mingw32.mk')
-rw-r--r--depends/hosts/mingw32.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/depends/hosts/mingw32.mk b/depends/hosts/mingw32.mk
index c09f7b1e3a..755d7aebe4 100644
--- a/depends/hosts/mingw32.mk
+++ b/depends/hosts/mingw32.mk
@@ -1,3 +1,6 @@
+ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-gcc-posix"),)
+mingw32_CC := $(host)-gcc-posix
+endif
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-g++-posix"),)
mingw32_CXX := $(host)-g++-posix
endif