mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Let prefetch to be enabled by default on Windows
When compiling with MSVC we don't use the Makefile so tweak a bit the Makefile to allow to let prefetch in by default so that it works under Windows. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -64,6 +64,7 @@ OBJS = application.o bitboard.o pawns.o material.o endgame.o evaluate.o main.o \
|
||||
### 2.1. General
|
||||
debug = no
|
||||
optimize = yes
|
||||
no_prefetch = yes
|
||||
|
||||
### 2.2 Architecture specific
|
||||
|
||||
@@ -278,7 +279,11 @@ endif
|
||||
|
||||
### 3.8 prefetch
|
||||
ifeq ($(prefetch),yes)
|
||||
CXXFLAGS += -msse -DUSE_PREFETCH
|
||||
no_prefetch = no
|
||||
endif
|
||||
|
||||
ifeq ($(no_prefetch),yes)
|
||||
CXXFLAGS += -msse -DNO_PREFETCH
|
||||
DEPENDFLAGS += -msse
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user