X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=b6ffbe823cbb130a58702c8b09b7a94dc5bf81d4;hp=6917e66e1d6822ad98d63a254fcf4642760fbd8c;hb=5f4d9309c8802aa0b84b857b49877cc753fde400;hpb=80a759d544cc22f5e35ac8e1f0b38ecc3a734df1 diff --git a/src/Makefile b/src/Makefile index 6917e66e..b6ffbe82 100644 --- a/src/Makefile +++ b/src/Makefile @@ -151,7 +151,7 @@ endif ifeq ($(COMP),gcc) comp=gcc CXX=g++ - CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow + CXXFLAGS += -pedantic -Wextra -Wshadow ifneq ($(UNAME),Darwin) LDFLAGS += -Wl,--no-as-needed endif @@ -173,7 +173,7 @@ endif ifeq ($(COMP),clang) comp=clang CXX=clang++ - CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow + CXXFLAGS += -pedantic -Wextra -Wshadow ifeq ($(UNAME),Darwin) CXXFLAGS += -std=c++0x -stdlib=libc++ DEPENDFLAGS += -std=c++0x -stdlib=libc++ @@ -197,6 +197,11 @@ ifeq ($(UNAME),Darwin) LDFLAGS += -arch $(arch) -mmacosx-version-min=10.9 endif +### Travis CI script uses COMPILER to overwrite CXX +ifdef COMPILER + CXX=$(COMPILER) +endif + ### On mingw use Windows threads, otherwise POSIX ifneq ($(comp),mingw) # On Android Bionic's C library comes with its own pthread implementation bundled in