X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=3963e5589d6fdfc85a87dd230ff0d3ef048830fc;hp=d5a72b66f5a5a829c98ca7270687e26a1a906c06;hb=8d65fcc0f3b26beb19cc838ff2ad0c78ac289120;hpb=2643f1552fca823a2922c124b49f1fa04aa5d970 diff --git a/src/Makefile b/src/Makefile index d5a72b66..3963e558 100644 --- a/src/Makefile +++ b/src/Makefile @@ -25,11 +25,8 @@ EXE = stockfish ### ========================================================================== ### Compiler speed switches for both GCC and ICC. These settings are generally ### fast on a broad range of systems, but may be changed experimentally -### -### NOTE: Some versions of gcc miscompile value.h with -O2 or -O3, this is the -### safe setup, try changing to -O3 or -O2 and verify it works for you. ### ========================================================================== -GCCFLAGS = -O1 -msse +GCCFLAGS = -O3 -msse ICCFLAGS = -fast -msse ICCFLAGS-OSX = -fast -mdynamic-no-pic @@ -83,6 +80,7 @@ help: @echo "Makefile options:" @echo "" @echo "make > Default: Compiler = g++" + @echo "make gcc-popcnt > Compiler = g++ + popcnt-support" @echo "make icc > Compiler = icpc" @echo "make icc-profile > Compiler = icpc + automatic pgo-build" @echo "make icc-profile-popcnt > Compiler = icpc + automatic pgo-build + popcnt-support" @@ -111,6 +109,13 @@ gcc: CXXFLAGS="$(GCCFLAGS)" \ all +gcc-popcnt: + $(MAKE) \ + CXX='g++' \ + CXXFLAGS="$(GCCFLAGS) -DUSE_POPCNT" \ + all + + icc: $(MAKE) \ CXX='icpc' \