]> git.sesse.net Git - stockfish/commitdiff
Do not set default value for architeture in Makefile
authorJoona Kiiski <joona.kiiski@gmail.com>
Tue, 21 Jan 2014 22:18:39 +0000 (22:18 +0000)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 25 Jan 2014 10:29:32 +0000 (11:29 +0100)
Fixes a regression that ARCH parameter was not properly validated.
Invalid value would default to generic 32-bit build.

No functional change.

src/Makefile

index 8248640010471b8e4fe3fe0f218d9307514ddea2..9b8e926a5c73df6d9f283d638eb43824bd7b19a4 100644 (file)
@@ -69,7 +69,6 @@ OBJS = benchmark.o bitbase.o bitboard.o book.o endgame.o evaluate.o main.o \
 debug = no
 optimize = yes
 
-arch = any
 os = any
 bits = 32
 prefetch = no
@@ -79,18 +78,22 @@ sse = no
 
 ### 2.2 Architecture specific
 
+ifeq ($(ARCH),general-32)
+       arch = any
+endif
+
 ifeq ($(ARCH),x86-32-old)
        arch = i386
 endif
 
 ifeq ($(ARCH),x86-32)
        arch = i386
-       bits = 32
        prefetch = yes
        sse = yes
 endif
 
 ifeq ($(ARCH),general-64)
+       arch = any
        bits = 64
 endif
 
@@ -113,7 +116,6 @@ endif
 
 ifeq ($(ARCH),armv7)
        arch = armv7
-       bits = 32
        prefetch = yes
        bsfq = yes
 endif
@@ -121,7 +123,6 @@ endif
 ifeq ($(ARCH),osx-ppc-32)
        arch = ppc
        os = osx
-       bits = 32
 endif
 
 ifeq ($(ARCH),osx-ppc-64)
@@ -157,7 +158,6 @@ endif
 ifeq ($(ARCH),osx-x86-32)
        arch = i386
        os = osx
-       bits = 32
        prefetch = yes
        bsfq = no
        popcnt = no