X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=4e4d3d918539f73d0df51e41b77dde2b1188bfc1;hp=ee09dc7b63fdb7f19b43fd621b79ee06e4930c00;hb=90f5937373974adf4ae7216feedf5abc4d62debd;hpb=1e8836d921b3b508e5d44d2fafab95230bdd03c6 diff --git a/src/Makefile b/src/Makefile index ee09dc7b..4e4d3d91 100644 --- a/src/Makefile +++ b/src/Makefile @@ -160,18 +160,22 @@ endif ifeq ($(COMP),mingw) comp=mingw - ifeq ($(bits),64) - ifeq ($(shell which x86_64-w64-mingw32-c++-posix),) - CXX=x86_64-w64-mingw32-c++ + ifeq ($(UNAME),Linux) + ifeq ($(bits),64) + ifeq ($(shell which x86_64-w64-mingw32-c++-posix),) + CXX=x86_64-w64-mingw32-c++ + else + CXX=x86_64-w64-mingw32-c++-posix + endif else - CXX=x86_64-w64-mingw32-c++-posix + ifeq ($(shell which i686-w64-mingw32-c++-posix),) + CXX=i686-w64-mingw32-c++ + else + CXX=i686-w64-mingw32-c++-posix + endif endif else - ifeq ($(shell which i686-w64-mingw32-c++-posix),) - CXX=i686-w64-mingw32-c++ - else - CXX=i686-w64-mingw32-c++-posix - endif + CXX=g++ endif CXXFLAGS += -Wextra -Wshadow