mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-29 07:41:47 +00:00
build fix proposal on mac where archs are well defined.
the arch normalization leads to arm32 bit build under mac m1.
This commit is contained in:
parent
8358e386fc
commit
a15e53ce60
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -109,8 +109,12 @@ YQ2_ARCH ?= $(PROCESSOR_ARCHITECTURE)
|
||||||
endif
|
endif
|
||||||
endif # windows but MINGW_CHOST not defined
|
endif # windows but MINGW_CHOST not defined
|
||||||
else
|
else
|
||||||
|
ifneq ($(YQ2_OSTYPE), Darwin)
|
||||||
# Normalize some abiguous YQ2_ARCH strings
|
# Normalize some abiguous YQ2_ARCH strings
|
||||||
YQ2_ARCH ?= $(shell uname -m | sed -e 's/i.86/i386/' -e 's/amd64/x86_64/' -e 's/^arm.*/arm/')
|
YQ2_ARCH ?= $(shell uname -m | sed -e 's/i.86/i386/' -e 's/amd64/x86_64/' -e 's/^arm.*/arm/')
|
||||||
|
else
|
||||||
|
YQ2_ARCH ?= $(shell uname -m)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# On Windows / MinGW $(CC) is undefined by default.
|
# On Windows / MinGW $(CC) is undefined by default.
|
||||||
|
|
Loading…
Reference in a new issue