1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 09:13:08 +00:00

Improve logic on mingw

There is no need to point g++, if we explicitly choose mingw.

Now for cygwin:

make COMP=mingw ARCH=x86-64-modern build

closes https://github.com/official-stockfish/Stockfish/pull/3860

No functional change
This commit is contained in:
proukornew 2021-12-17 01:30:23 +03:00 committed by Joost VandeVondele
parent 7678d63cf2
commit d11101e4c6

View file

@ -368,23 +368,19 @@ endif
ifeq ($(COMP),mingw) ifeq ($(COMP),mingw)
comp=mingw comp=mingw
ifeq ($(KERNEL),Linux)
ifeq ($(bits),64) ifeq ($(bits),64)
ifeq ($(shell which x86_64-w64-mingw32-c++-posix),) ifeq ($(shell which x86_64-w64-mingw32-c++-posix 2> /dev/null),)
CXX=x86_64-w64-mingw32-c++ CXX=x86_64-w64-mingw32-c++
else else
CXX=x86_64-w64-mingw32-c++-posix CXX=x86_64-w64-mingw32-c++-posix
endif endif
else else
ifeq ($(shell which i686-w64-mingw32-c++-posix),) ifeq ($(shell which i686-w64-mingw32-c++-posix 2> /dev/null),)
CXX=i686-w64-mingw32-c++ CXX=i686-w64-mingw32-c++
else else
CXX=i686-w64-mingw32-c++-posix CXX=i686-w64-mingw32-c++-posix
endif endif
endif endif
else
CXX=g++
endif
CXXFLAGS += -pedantic -Wextra -Wshadow CXXFLAGS += -pedantic -Wextra -Wshadow
LDFLAGS += -static LDFLAGS += -static