mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Do not set default value for architeture in Makefile
Fixes a regression that ARCH parameter was not properly validated. Invalid value would default to generic 32-bit build. No functional change.
This commit is contained in:
parent
a08a21d5a0
commit
cf95a55d76
1 changed files with 5 additions and 5 deletions
10
src/Makefile
10
src/Makefile
|
@ -69,7 +69,6 @@ OBJS = benchmark.o bitbase.o bitboard.o book.o endgame.o evaluate.o main.o \
|
||||||
debug = no
|
debug = no
|
||||||
optimize = yes
|
optimize = yes
|
||||||
|
|
||||||
arch = any
|
|
||||||
os = any
|
os = any
|
||||||
bits = 32
|
bits = 32
|
||||||
prefetch = no
|
prefetch = no
|
||||||
|
@ -79,18 +78,22 @@ sse = no
|
||||||
|
|
||||||
### 2.2 Architecture specific
|
### 2.2 Architecture specific
|
||||||
|
|
||||||
|
ifeq ($(ARCH),general-32)
|
||||||
|
arch = any
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),x86-32-old)
|
ifeq ($(ARCH),x86-32-old)
|
||||||
arch = i386
|
arch = i386
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),x86-32)
|
ifeq ($(ARCH),x86-32)
|
||||||
arch = i386
|
arch = i386
|
||||||
bits = 32
|
|
||||||
prefetch = yes
|
prefetch = yes
|
||||||
sse = yes
|
sse = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),general-64)
|
ifeq ($(ARCH),general-64)
|
||||||
|
arch = any
|
||||||
bits = 64
|
bits = 64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -113,7 +116,6 @@ endif
|
||||||
|
|
||||||
ifeq ($(ARCH),armv7)
|
ifeq ($(ARCH),armv7)
|
||||||
arch = armv7
|
arch = armv7
|
||||||
bits = 32
|
|
||||||
prefetch = yes
|
prefetch = yes
|
||||||
bsfq = yes
|
bsfq = yes
|
||||||
endif
|
endif
|
||||||
|
@ -121,7 +123,6 @@ endif
|
||||||
ifeq ($(ARCH),osx-ppc-32)
|
ifeq ($(ARCH),osx-ppc-32)
|
||||||
arch = ppc
|
arch = ppc
|
||||||
os = osx
|
os = osx
|
||||||
bits = 32
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),osx-ppc-64)
|
ifeq ($(ARCH),osx-ppc-64)
|
||||||
|
@ -157,7 +158,6 @@ endif
|
||||||
ifeq ($(ARCH),osx-x86-32)
|
ifeq ($(ARCH),osx-x86-32)
|
||||||
arch = i386
|
arch = i386
|
||||||
os = osx
|
os = osx
|
||||||
bits = 32
|
|
||||||
prefetch = yes
|
prefetch = yes
|
||||||
bsfq = no
|
bsfq = no
|
||||||
popcnt = no
|
popcnt = no
|
||||||
|
|
Loading…
Add table
Reference in a new issue