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