]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Fix some warnings with Intel C++ compiler
[stockfish] / src / Makefile
index 187e7b313404fb5df608a62eba6d38cd81b546fc..92072cc1b07eb4b93ebec9bd1734043b8de72488 100644 (file)
@@ -285,7 +285,11 @@ endif
 
 ### 3.9 popcnt
 ifeq ($(popcnt),yes)
-       CXXFLAGS += -msse3 -DUSE_POPCNT
+       ifeq ($(comp),icc)
+               CXXFLAGS += -msse3 -DUSE_POPCNT
+       else
+               CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT
+       endif
 endif
 
 ### 3.10 pext