]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Big-endian compatible pop_1st_bit()
[stockfish] / src / Makefile
index 28fbb0d67187e855a1914dc2008598cfd7a3c02d..5fa29c0a01a35226c421de301a134210be264c1d 100644 (file)
@@ -39,6 +39,14 @@ ICCFLAGS += -DNDEBUG
 ICCFLAGS-OSX += -DNDEBUG
 
 
+### ==========================================================================
+### Enable/disable compile for a big-endian CPU, disabled by default
+### ==========================================================================
+GCCFLAGS += -DNBIGENDIAN
+ICCFLAGS += -DNBIGENDIAN
+ICCFLAGS-OSX += -DNBIGENDIAN
+
+
 ### ==========================================================================
 ### Run built-in benchmark for pgo-builds with:  32MB hash  1 thread  10 depth
 ### These settings are generally fast, but may be changed experimentally
@@ -47,9 +55,9 @@ PGOBENCH = ./$(EXE) bench 32 1 10 default depth
 
 
 ### General compiler settings. Do not change
-GCCFLAGS += -g -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing
-ICCFLAGS += -g -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing -wd383,869,981,10187,10188,11505,11503
-ICCFLAGS-OSX += -g -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing -wd383,869,981,10187,10188,11505,11503
+GCCFLAGS += -g -Wall -fno-exceptions -fno-rtti
+ICCFLAGS += -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503
+ICCFLAGS-OSX += -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503
 
 
 ### General linker settings. Do not change