Skip to content

Commit

Permalink
Assign OS to Msys or Cyginw
Browse files Browse the repository at this point in the history
They both inherit OS from Windows
  • Loading branch information
alef committed Feb 2, 2025
1 parent 22e7e87 commit 198e045
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,13 @@ endif

# Windows sets the OS environment variable so we can cheaply test for it.
ifneq (,$(findstring Windows_NT,$(OS)))
IS_WINDOWS_HOST = 1
ifeq ($(MSYS2),1)
OS = Msys
else ifeq ($(MAKE_HOST),x86_64-pc-cygwin)
OS = Cygwin
else # MAKE_HOST=x86_64-w64-mingw32
IS_WINDOWS_HOST = 1
endif
else
IS_WINDOWS_HOST = 0
OS = $(shell uname -o)
Expand Down

0 comments on commit 198e045

Please sign in to comment.