Skip to content

Commit e738a0b

Browse files
committed
Detect Cygwin
1 parent 55e01a7 commit e738a0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/make/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,19 @@ endif
3232
# TODO: add Windows command
3333

3434
# Determine the OS:
35+
#
36+
# [1]: https://en.wikipedia.org/wiki/Uname#Examples
37+
# [2]: http://stackoverflow.com/a/27776822/2225624
3538
OS := $(shell uname)
3639
ifneq (, $(findstring MINGW,$(OS)))
3740
OS := WINNT
3841
else
3942
ifneq (, $(findstring MSYS,$(OS)))
4043
OS := WINNT
44+
else
45+
ifneq (, $(findstring CYGWIN,$(OS)))
46+
OS := WINNT
47+
endif
4148
endif
4249
endif
4350

0 commit comments

Comments
 (0)