Skip to content

Commit 2d30dc2

Browse files
committed
Detect Cygwin
1 parent 3a6f304 commit 2d30dc2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/make/lib/addons/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
# VARIABLES #
33

44
# Determine the OS:
5+
#
6+
# [1]: https://en.wikipedia.org/wiki/Uname#Examples
7+
# [2]: http://stackoverflow.com/a/27776822/2225624
58
OS := $(shell uname)
69
ifneq (, $(findstring MINGW,$(OS)))
710
OS := WINNT
811
else
912
ifneq (, $(findstring MSYS,$(OS)))
1013
OS := WINNT
14+
else
15+
ifneq (, $(findstring CYGWIN,$(OS)))
16+
OS := WINNT
17+
endif
1118
endif
1219
endif
1320

0 commit comments

Comments
 (0)