mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Correctly check for no-makefile compile
Under Windows with MSVC we use the IDE to compile, in this case we infer some compiler flags usually set by Makefile. The condition to check this was wrong, namely when compiling with mingw under Windows 64 bit we always set IS_64BIT and USE_BSFQ even if compiled with ARCH=x86-32 (this is how I found it). Small code style touches while there. No functional change.
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
/// _WIN32 Building on Windows (any)
|
||||
/// _WIN64 Building on Windows 64 bit
|
||||
|
||||
#if defined(_WIN64) && !defined(IS_64BIT) // Last condition means Makefile is not used
|
||||
#if defined(_WIN64) && defined(_MSC_VER) // No Makefile used
|
||||
# include <intrin.h> // MSVC popcnt and bsfq instrinsics
|
||||
# define IS_64BIT
|
||||
# define USE_BSFQ
|
||||
|
||||
Reference in New Issue
Block a user