mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-26 17:30:23 +00:00
Swap these conditions, otherwise Darwin gets matched as win & fails build (thanks endrift to point out)
Also use uname -s instead, in case a unix system has 'win' or other word in its hostname
This commit is contained in:
parent
ba2c2dc577
commit
1fdec04851
@ -11,15 +11,15 @@ filter_out2 = $(call filter_out1,$(call filter_out1,$1))
|
||||
# system platform
|
||||
ifeq ($(platform),)
|
||||
platform = unix
|
||||
ifeq ($(shell uname -a),)
|
||||
ifeq ($(shell uname -s),)
|
||||
EXE_EXT = .exe
|
||||
platform = win
|
||||
else ifneq ($(findstring MINGW,$(shell uname -a)),)
|
||||
else ifneq ($(findstring MINGW,$(shell uname -s)),)
|
||||
platform = win
|
||||
else ifneq ($(findstring win,$(shell uname -a)),)
|
||||
platform = win
|
||||
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
||||
else ifneq ($(findstring Darwin,$(shell uname -s)),)
|
||||
platform = osx
|
||||
else ifneq ($(findstring win,$(shell uname -s)),)
|
||||
platform = win
|
||||
endif
|
||||
else ifneq (,$(findstring armv,$(platform)))
|
||||
override platform += unix
|
||||
|
Loading…
Reference in New Issue
Block a user