Skip to content

Commit 21f874f

Browse files
committed
Determine OS
1 parent 23742be commit 21f874f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/make/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ else
3131
endif
3232
# TODO: add Windows command
3333

34+
# Determine the OS:
35+
OS := $(shell uname)
36+
ifneq (, $(findstring MINGW,$(OS)))
37+
OS := WINNT
38+
else
39+
ifneq (, $(findstring MSYS,$(OS)))
40+
OS := WINNT
41+
endif
42+
endif
43+
3444

3545
# DEPENDENCIES #
3646

0 commit comments

Comments
 (0)