mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +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:
committed by
Joost VandeVondele
parent
7678d63cf2
commit
d11101e4c6
+9
-13
@@ -368,22 +368,18 @@ 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 2> /dev/null),)
|
||||||
ifeq ($(shell which x86_64-w64-mingw32-c++-posix),)
|
CXX=x86_64-w64-mingw32-c++
|
||||||
CXX=x86_64-w64-mingw32-c++
|
|
||||||
else
|
|
||||||
CXX=x86_64-w64-mingw32-c++-posix
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
ifeq ($(shell which i686-w64-mingw32-c++-posix),)
|
CXX=x86_64-w64-mingw32-c++-posix
|
||||||
CXX=i686-w64-mingw32-c++
|
|
||||||
else
|
|
||||||
CXX=i686-w64-mingw32-c++-posix
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
CXX=g++
|
ifeq ($(shell which i686-w64-mingw32-c++-posix 2> /dev/null),)
|
||||||
|
CXX=i686-w64-mingw32-c++
|
||||||
|
else
|
||||||
|
CXX=i686-w64-mingw32-c++-posix
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS += -pedantic -Wextra -Wshadow
|
CXXFLAGS += -pedantic -Wextra -Wshadow
|
||||||
|
|||||||
Reference in New Issue
Block a user